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