2 Commits

Author SHA1 Message Date
GitHub Actions
da67fad037 Foo 2021-12-10 15:36:27 +00:00
Stephan
528d1e9ef8 poo 2021-12-10 16:36:07 +01:00
3 changed files with 9 additions and 8 deletions

View File

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

View File

@@ -1 +0,0 @@
pii

1
poo.txt Normal file
View File

@@ -0,0 +1 @@
poo