From 14f0da5c1f59097d53763c62e5caa47daf9798e5 Mon Sep 17 00:00:00 2001 From: Spitfireap Date: Fri, 12 Apr 2024 14:10:20 +0200 Subject: [PATCH] Updated versioning --- .github/workflows/versioning.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index d368512..1ac170b 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -7,19 +7,21 @@ jobs: runs-on: ubuntu-latest steps: - 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 uses: "DamianReeves/write-file-action@master" with: path: version.txt write-mode: overwrite - contents: $GITHUB_SHA + contents: ${{ GITHUB_SHA }} - name: Commit & Push uses: Andro999b/push@v1.3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main + branch: ${{ github.ref_name }} force: true message: '[GitHub Action] Updated version file'