From b0a991ace54b630cccf133d4b34fa082a48036e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Sat, 24 Feb 2024 00:00:01 +0100 Subject: [PATCH] added new workflow for version Sometimes I forget to bump the version. So here is an action to check and yell at me when I forget --- .github/workflows/check-version-bump.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/check-version-bump.yml diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml new file mode 100644 index 000000000..78a8cf5ea --- /dev/null +++ b/.github/workflows/check-version-bump.yml @@ -0,0 +1,20 @@ +name: Check Version Bump +on: + pull_request: + branches: [ "main" ] + +jobs: + check-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: johnnybenson/package-json-versioned-action@v1.0.5 + id: package-json + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check if version has been updated + if: steps.package-json.outputs.has-updated == 'false' + run: | + echo "The version has not been updated" + exit 1 \ No newline at end of file