From c7bf853e46fb6f6b64186b342d33701a3a4bd4ca Mon Sep 17 00:00:00 2001 From: Nikita Melnikov Date: Mon, 8 Sep 2025 20:50:15 +0200 Subject: [PATCH 1/3] Update GitHub Actions workflow to check for version bumps and upgrade action versions --- .github/workflows/bump-version.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 8e03f837..2f5ca7cc 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -6,9 +6,11 @@ jobs: # If pull request was merged then we should check for a package version update check-version-update: runs-on: ubuntu-22.04 + outputs: + should-bump: ${{ steps.version-check.outputs.should-bump }} steps: # Checkout to target branch - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 with: fetch-depth: 0 @@ -26,20 +28,26 @@ jobs: id: packageOld uses: codex-team/action-nodejs-package-info@v1 - # Stop workflow and do not bump version if it was changed already - - name: Stop workflow and do not bump version if it was changed already - uses: andymckay/cancel-action@0.2 - if: steps.packageOld.outputs.version != steps.packageNew.outputs.version + # Check if version should be bumped + - name: Check if version should be bumped + id: version-check + run: | + if [ "${{ steps.packageOld.outputs.version }}" == "${{ steps.packageNew.outputs.version }}" ]; then + echo "should-bump=true" >> $GITHUB_OUTPUT + else + echo "should-bump=false" >> $GITHUB_OUTPUT + fi bump-version: needs: check-version-update + if: needs.check-version-update.outputs.should-bump == 'true' runs-on: ubuntu-22.04 steps: # Checkout to target branch - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 # Setup node environment - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v5 with: node-version-file: '.nvmrc' registry-url: https://registry.npmjs.org/ @@ -54,7 +62,7 @@ jobs: uses: codex-team/action-nodejs-package-info@v1 # Commit version upgrade - - uses: EndBug/add-and-commit@v7 + - uses: EndBug/add-and-commit@v9 with: author_name: github-actions author_email: 41898282+github-actions[bot]@users.noreply.github.com From 570344df2c833deb99c937abff40a0b6e8ee0f93 Mon Sep 17 00:00:00 2001 From: Nikita Melnikov Date: Mon, 8 Sep 2025 20:54:41 +0200 Subject: [PATCH 2/3] fix --- .github/workflows/bump-version.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 2f5ca7cc..9e495603 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -45,6 +45,9 @@ jobs: steps: # Checkout to target branch - uses: actions/checkout@v5 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} # Setup node environment - uses: actions/setup-node@v5 From bff61590fd94ff8f3b7b194a6a67bf701daf80f2 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 18:55:11 +0000 Subject: [PATCH 3/3] Bump version up to 1.1.29 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4f47295e..f9b32ca1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hawk.api", - "version": "1.1.28", + "version": "1.1.29", "main": "index.ts", "license": "UNLICENSED", "scripts": {