Skip to content

Commit

Permalink
Fix check run location calculation in security workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Aug 17, 2024
1 parent 50eaadd commit b497b04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ jobs:
- name: Build ReleaseNotes
run: dotnet publish -c Release -p:TGS_HOST_NO_WEBPANEL=true -o release_notes_bins tools/Tgstation.Server.ReleaseNotes/Tgstation.Server.ReleaseNotes.csproj

- name: Read Current SHA # Can't rely on github.sha as it's for the base branch
id: get-pr-sha
run: echo "head_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

- name: Generate Temporary Branch to Reference Merge
run: |
git checkout -b ${{ github.event.pull_request.number }}-merge
Expand All @@ -103,7 +107,7 @@ jobs:
}
- name: Set CI Check Run (Pending)
run: dotnet release_notes_bins/Tgstation.Server.ReleaseNotes.dll --ci-check ${{ github.sha }} ${{ secrets.TGS_CI_GITHUB_APP_TOKEN_BASE64 }} Pending ${{ steps.dispatch.outputs.run-id }}
run: dotnet release_notes_bins/Tgstation.Server.ReleaseNotes.dll --ci-check ${{ steps.get-pr-sha.outputs.head_sha }} ${{ secrets.TGS_CI_GITHUB_APP_TOKEN_BASE64 }} Pending ${{ steps.dispatch.outputs.run-id }}

- name: Delete Temporary Branch
if: always()
Expand Down

0 comments on commit b497b04

Please sign in to comment.