From 1dae6e1099e7354a940ab8be4ea89a5ecb171373 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Thu, 20 Jul 2023 17:11:32 +0200 Subject: [PATCH] fix: skip condition --- .github/workflows/test.yml | 10 ++++++++++ action.yml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a3001a5..70414bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,4 +33,14 @@ jobs: ref_branch: 'main' version_args: 'patch' node_version: ${{ env.NODE_VERSION }} + uses: ./ + + - name: Test bump action (without push) + with: + user_name: 'drassil-git-bot' + user_email: 'drassil-git-bot@drassil.org' + ref_branch: 'main' + version_args: 'patch' + node_version: ${{ env.NODE_VERSION }} + skip_push: true uses: ./ \ No newline at end of file diff --git a/action.yml b/action.yml index 1711bef..3316715 100644 --- a/action.yml +++ b/action.yml @@ -67,7 +67,7 @@ runs: git add -A git commit -m "chore: bump package version to $PACKAGE_VERSION and update changelog" - name: Push - if: ${{ !inputs.skip_push }} + if: ${{ inputs.skip_push != "true" }} shell: bash run: | git push --force https://${{ inputs.access_token || github.token }}@github.com/${{ github.event.pull_request.head.repo.full_name }}