Skip to content

Commit

Permalink
Fix a syntax warning in the Step 2 workflow (#58)
Browse files Browse the repository at this point in the history
Restore the commit_id output
  • Loading branch information
sinsukehlab committed Sep 12, 2023
1 parent 35afc1c commit a8c8389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/2-find-commit-in-history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
- id: get_step
run: |
echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
- id: get_commit_id
run: |
echo "commit_id=$(cat ./.github/files/SIDEBARCOMMIT)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}
commit_id: ${{ steps.get_commit_id.outputs.commit_id }}

on_fix_the_sidebar_issue_comment:
name: Check if the issue comment is referencing the correct commit ID
Expand Down Expand Up @@ -61,7 +65,7 @@ jobs:
run: echo '${{ toJSON(github.event.issue) }}'

- name: Check if the issue comment is referencing the required commit ID
if: contains(github.event.comment.body, needs.find_commit_id.outputs.find_commit_id)
if: contains(github.event.comment.body, needs.get_current_step.outputs.commit_id)
run: echo 'Found the reference to required commit in the comment'

# Update README from step 2 to step 3.
Expand Down

0 comments on commit a8c8389

Please sign in to comment.