Skip to content

Create patch.yml

Create patch.yml #1

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: 20, Col: 13): Unexpected symbol: '--count'. Located at position 14 within expression: git rev-list --count $CURRENT_TAG..master >= 5, (Line: 20, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
on:
push:
paths:
- 'REMOVE_THIS'
#on:
#schedule:
# - cron: "0 13 * * 1"
jobs:
makepatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set current tag
run: echo "CURRENT_TAG=${git describe --tags --abbrev=0}" >> $GITHUB_ENV
- run: echo "CURRENT_TAG=$CURRENT_TAG"
- run: echo "commits count ${git rev-list --count $CURRENT_TAG..master}"
- if: ${{ git rev-list --count $CURRENT_TAG..master >= 5 }}
- name: Make a new tag
run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'