4 Commits

Author SHA1 Message Date
GitHub Actions
73aaf9a437 Foo 2021-12-10 15:41:14 +00:00
Stephan
dd62ea5560 pii 2021-12-10 16:40:54 +01:00
Stephan
de64657f2c exp 2021-12-10 16:40:40 +01:00
Stephan
32e0aac7fa exp 2021-12-10 16:38:27 +01:00
3 changed files with 10 additions and 8 deletions

View File

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

View File

@@ -1 +1,2 @@
foo
foo

1
pii.txt Normal file
View File

@@ -0,0 +1 @@
pii