Skip to content

Update patch.yml

Update patch.yml #4

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: 21, Col: 13): Unrecognized named-value: 'COMMIT_COUNT'. Located at position 1 within expression: COMMIT_COUNT >= 5, (Line: 21, 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:
- './TEST'
#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"
- name: Get commits count
run: echo "COMMIT_COUNT=${git rev-list --count $CURRENT_TAG..master}" >> $GITHUB_ENV
- if: ${{COMMIT_COUNT >= 5}}
- name: Make a new tag
run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'