diff --git a/actions/commit_pr_and_merge/action.yaml b/actions/commit_pr_and_merge/action.yaml index deb4d06e..98f64939 100644 --- a/actions/commit_pr_and_merge/action.yaml +++ b/actions/commit_pr_and_merge/action.yaml @@ -84,11 +84,18 @@ runs: PR_URL: ${{ steps.create-pr.outputs.pull-request-url }} MERGE_PR_STRATEGY: ${{ github.ref_protected == 'true' && '--merge' || '--rebase' }} ADMIN_ACCESS: ${{ inputs.admin_access == 'true' && '--admin' || '' }} + + - name: Test + shell: bash + run: | + echo ${{ github.event.inputs.tag }} + echo ${{ github.event.inputs.tag != '' }} + echo ${{ steps.changes.outputs.changes_exist }} - name: Tag commit uses: actions/github-script@v7 id: tag-commit - if: github.event.inputs.tag != '' && steps.changes.outputs.changes_exist == 'true' + if: (github.event.inputs.tag != '') && (steps.changes.outputs.changes_exist == 'true') with: script: | const pr = (await github.rest.pulls.get({ @@ -121,7 +128,7 @@ runs: - name: Print outputs uses: actions/github-script@v7 - if: github.event.inputs.tag != '' && steps.changes.outputs.changes_exist == 'true' + if: (github.event.inputs.tag != '') && (steps.changes.outputs.changes_exist == 'true') with: script: | console.log('Result', '${{ steps.tag-commit.outcome }}');