From 024d85c6c57dfa8f5b1e29903716160507038131 Mon Sep 17 00:00:00 2001 From: Dan Grebb Date: Mon, 22 Apr 2024 19:38:22 -0400 Subject: [PATCH] fix(github): update action summary conditional for PRs --- .github/workflows/bdt-fe.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bdt-fe.yml b/.github/workflows/bdt-fe.yml index 37666221..3b57fe5e 100644 --- a/.github/workflows/bdt-fe.yml +++ b/.github/workflows/bdt-fe.yml @@ -115,7 +115,7 @@ jobs: echo '- Event: ${{ github.event_name }}' >> $GITHUB_STEP_SUMMARY echo '## Run Details' >> $GITHUB_STEP_SUMMARY echo '- Branch: [${{ env.BRANCH_NAME }}](https://github.com/dgrebb/dgrebb.com/tree/${{ env.BRANCH_NAME }})' >> $GITHUB_STEP_SUMMARY - if [ "${{ github.event_name }}" = "pull_request" ]; then + if [ "${{ github.event_name }}" == "pull_request" ]; then echo '- Pull Request: [#${{ github.event.number }}](https://github.com/dgrebb/dgrebb.com/pull/${{ github.event.number }}) ${{ github.event.pull_request.title }}' >> $GITHUB_STEP_SUMMARY echo '- ${{ github.event.pull_request.changed_files }} Files Changed: [ ${{ github.event.pull_request.commits }} Commits](https://github.com/dgrebb/dgrebb.com/pull/${{ github.event.number }}/commits) | [Diff](https://github.com/dgrebb/dgrebb.com/pull/${{ github.event.number }}/files)' >> $GITHUB_STEP_SUMMARY fi