From c0c8a4c85c6ee3c1937defe0b29068767ebb9a53 Mon Sep 17 00:00:00 2001 From: ZackaryW <36378555+ZackaryW@users.noreply.github.com> Date: Mon, 9 Sep 2024 09:38:03 -0700 Subject: [PATCH] ci: add ability to push changes --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 24ee74f..9291c48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ on: jobs: release: + if: github.actor != 'github-actions[bot]' runs-on: ubuntu-latest steps: @@ -69,6 +70,15 @@ jobs: jq --arg v "$VERSION" '.version = $v' manifest.json > manifest_tmp.json mv manifest_tmp.json manifest.json + + - name: Commit and push changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add package.json manifest.json + git commit -m "Bump version to $VERSION" + git push + - name: Build the project run: npm run build