Updated versioning
This commit is contained in:
10
.github/workflows/versioning.yml
vendored
10
.github/workflows/versioning.yml
vendored
@@ -7,19 +7,21 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Overwrite file
|
||||||
uses: "DamianReeves/write-file-action@master"
|
uses: "DamianReeves/write-file-action@master"
|
||||||
with:
|
with:
|
||||||
path: version.txt
|
path: version.txt
|
||||||
write-mode: overwrite
|
write-mode: overwrite
|
||||||
contents: $GITHUB_SHA
|
contents: ${{ GITHUB_SHA }}
|
||||||
|
|
||||||
- name: Commit & Push
|
- name: Commit & Push
|
||||||
uses: Andro999b/push@v1.3
|
uses: Andro999b/push@v1.3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: main
|
branch: ${{ github.ref_name }}
|
||||||
force: true
|
force: true
|
||||||
message: '[GitHub Action] Updated version file'
|
message: '[GitHub Action] Updated version file'
|
||||||
|
|||||||
Reference in New Issue
Block a user