From 3c564909d0de3dfd8e1e6ead3802157c3ac197a7 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 10 Dec 2021 16:32:54 +0100 Subject: [PATCH] exp --- .github/workflows/manual-thingy.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/manual-thingy.yml b/.github/workflows/manual-thingy.yml index e92d225..ec7b283 100644 --- a/.github/workflows/manual-thingy.yml +++ b/.github/workflows/manual-thingy.yml @@ -1,21 +1,18 @@ name: Manually Do Something on: workflow_dispatch -inputs: - version: - description: "The version to release" - required: true jobs: job: runs-on: ubuntu-latest + if: startsWith(github.ref, "release/") steps: - name: Checkout uses: actions/checkout@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - ref: release/${{ github.event.inputs.version }} - name: Do Something 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.name "GitHub Actions (Do Something)" git push --tags