Skip to content

Updated versioning

Updated versioning #2

Workflow file for this run

name: Update version file
on: push
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
ref: ${{ github.head_ref }}
- name: Overwrite file
uses: "DamianReeves/write-file-action@master"
with:
path: version.txt
write-mode: overwrite
contents: ${{ GITHUB_SHA }}

Check failure on line 19 in .github/workflows/versioning.yml

View workflow run for this annotation

GitHub Actions / Update version file

Invalid workflow file

The workflow is not valid. .github/workflows/versioning.yml (Line: 19, Col: 21): Unrecognized named-value: 'GITHUB_SHA'. Located at position 1 within expression: GITHUB_SHA
- name: Commit & Push
uses: Andro999b/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}
force: true
message: '[GitHub Action] Updated version file'