Skip to content

Commit 9df5ba6

Browse files
authored
Use inputs instead of github.event.inputs (#138)
1 parent a2db889 commit 9df5ba6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

actions/commit_pr_and_merge/action.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,16 @@ runs:
8888
- name: Test
8989
shell: bash
9090
run: |
91+
echo ${{ inputs.tag }}
92+
echo ${{ inputs.tag != '' }}
9193
echo ${{ github.event.inputs.tag }}
9294
echo ${{ github.event.inputs.tag != '' }}
9395
echo ${{ steps.changes.outputs.changes_exist }}
9496
9597
- name: Tag commit
9698
uses: actions/github-script@v7
9799
id: tag-commit
98-
if: (github.event.inputs.tag != '') && (steps.changes.outputs.changes_exist == 'true')
100+
if: ${{ inputs.tag != '' && steps.changes.outputs.changes_exist == 'true' }}
99101
with:
100102
script: |
101103
const pr = (await github.rest.pulls.get({
@@ -128,7 +130,7 @@ runs:
128130
129131
- name: Print outputs
130132
uses: actions/github-script@v7
131-
if: (github.event.inputs.tag != '') && (steps.changes.outputs.changes_exist == 'true')
133+
if: ${{ inputs.tag != '' && steps.changes.outputs.changes_exist == 'true' }}
132134
with:
133135
script: |
134136
console.log('Result', '${{ steps.tag-commit.outcome }}');

0 commit comments

Comments
 (0)