1
0
This commit is contained in:
Stephan 2021-12-10 16:38:27 +01:00
parent d62945518b
commit 32e0aac7fa

View File

@ -3,7 +3,7 @@ on: workflow_dispatch
jobs: jobs:
job: job:
runs-on: ubuntu-latest runs-on: ubuntu-latest
#if: startsWith(github.ref, 'release/') if: startsWith(github.ref, 'refs/heads/release/')
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -11,10 +11,9 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Do Something - name: Do Something
run: | run: |
version="${${{ github.ref }}:8}" # trim starting 'release/' (8 chars) version="${${{ github.ref }}:19}" # trim starting 'refs/heads/release/' (19 chars)
echo "ref=${{ github.ref }}" echo "Tag ref ${{ github.ref }} as v$version"
echo "version=$version" git tag v$version
#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