exp
This commit is contained in:
parent
e65ddbcdfd
commit
3c564909d0
9
.github/workflows/manual-thingy.yml
vendored
9
.github/workflows/manual-thingy.yml
vendored
|
@ -1,21 +1,18 @@
|
||||||
name: Manually Do Something
|
name: Manually Do Something
|
||||||
on: workflow_dispatch
|
on: workflow_dispatch
|
||||||
inputs:
|
|
||||||
version:
|
|
||||||
description: "The version to release"
|
|
||||||
required: true
|
|
||||||
jobs:
|
jobs:
|
||||||
job:
|
job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.ref, "release/")
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
ref: release/${{ github.event.inputs.version }}
|
|
||||||
- name: Do Something
|
- name: Do Something
|
||||||
run: |
|
run: |
|
||||||
git tag v${{ github.event.inputs.version }}
|
version="${${{ github.ref }}:8}" # trim starting 'release/' (8 chars)
|
||||||
|
git tag v$version
|
||||||
git config user.email "github-actions@zpqrtbnk.net"
|
git config user.email "github-actions@zpqrtbnk.net"
|
||||||
git config user.name "GitHub Actions (Do Something)"
|
git config user.name "GitHub Actions (Do Something)"
|
||||||
git push --tags
|
git push --tags
|
||||||
|
|
Loading…
Reference in New Issue
Block a user