Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a syntax warning in the Step 2 workflow #58

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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