From 382a2d5a1266d8e52e57bf323191b85cc03946cd Mon Sep 17 00:00:00 2001 From: Spitfireap Date: Fri, 12 Apr 2024 14:01:19 +0200 Subject: [PATCH] Added github action --- .github/workflows/versioning.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/versioning.yml diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml new file mode 100644 index 0000000..d368512 --- /dev/null +++ b/.github/workflows/versioning.yml @@ -0,0 +1,25 @@ +name: Update version file + +on: push + +jobs: + update-version: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Overwrite file + uses: "DamianReeves/write-file-action@master" + with: + path: version.txt + write-mode: overwrite + contents: $GITHUB_SHA + + - name: Commit & Push + uses: Andro999b/push@v1.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: main + force: true + message: '[GitHub Action] Updated version file'