Skip to content

Commit

Permalink
Use inputs instead of github.event.inputs (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine authored Nov 18, 2024
1 parent a2db889 commit 9df5ba6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions actions/commit_pr_and_merge/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,16 @@ runs:
- name: Test
shell: bash
run: |
echo ${{ inputs.tag }}
echo ${{ inputs.tag != '' }}
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: ${{ inputs.tag != '' && steps.changes.outputs.changes_exist == 'true' }}
with:
script: |
const pr = (await github.rest.pulls.get({
Expand Down Expand Up @@ -128,7 +130,7 @@ runs:
- name: Print outputs
uses: actions/github-script@v7
if: (github.event.inputs.tag != '') && (steps.changes.outputs.changes_exist == 'true')
if: ${{ inputs.tag != '' && steps.changes.outputs.changes_exist == 'true' }}
with:
script: |
console.log('Result', '${{ steps.tag-commit.outcome }}');
Expand Down

0 comments on commit 9df5ba6

Please sign in to comment.