Skip to content

Update patch.yml

Update patch.yml #17

Workflow file for this run

name: patch

Check failure on line 1 in .github/workflows/patch.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/patch.yml

Invalid workflow file

(Line: 15, Col: 14): Unexpected symbol: '/usr/bin/git'. Located at position 1 within expression: /usr/bin/git describe --tags --abbrev=0, (Line: 20, Col: 14): Unexpected symbol: '/usr/bin/git'. Located at position 1 within expression: /usr/bin/git rev-list --count $CURRENT_TAG..master
on: workflow_dispatch
#on:
#schedule:
# - cron: "0 13 * * 1"
jobs:
makepatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set current tag
run: |
l=${{/usr/bin/git describe --tags --abbrev=0}}
echo "CURRENT_TAG=$l" >> $GITHUB_ENV
- run: echo "CURRENT_TAG=$CURRENT_TAG"
- name: Get commits count
run: |
l=${{/usr/bin/git rev-list --count $CURRENT_TAG..master}}
echo "COMMIT_COUNT=$l" >> $GITHUB_ENV
- if: ${{env.COMMIT_COUNT >= 5}}
run: echo $CURRENT_TAG | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'