Skip to content

Commit 4caebfb

Browse files
authored
refactor: Wrap GitHub CI conditionals in curly braces (#5796)
This change wraps all GitHub conditionals in `${{ .. }}`, both for consistency and to reduce unexpected failures, because it was previously noticed that not all conditionals work without those curly braces.
1 parent 37c377a commit 4caebfb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/on-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ jobs:
9292

9393
check-levelization:
9494
needs: should-run
95-
if: needs.should-run.outputs.go == 'true'
95+
if: ${{ needs.should-run.outputs.go == 'true' }}
9696
uses: ./.github/workflows/check-levelization.yml
9797

9898
build-test:
9999
needs: should-run
100-
if: needs.should-run.outputs.go == 'true'
100+
if: ${{ needs.should-run.outputs.go == 'true' }}
101101
uses: ./.github/workflows/build-test.yml
102102
strategy:
103103
matrix:
@@ -111,7 +111,7 @@ jobs:
111111
needs:
112112
- should-run
113113
- build-test
114-
if: needs.should-run.outputs.go == 'true'
114+
if: ${{ needs.should-run.outputs.go == 'true' }}
115115
uses: ./.github/workflows/notify-clio.yml
116116
secrets:
117117
clio_notify_token: ${{ secrets.CLIO_NOTIFY_TOKEN }}

.github/workflows/upload-conan-deps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ jobs:
8383
force_build: ${{ github.event_name == 'schedule' || github.event.inputs.force_source_build == 'true' }}
8484

8585
- name: Log into Conan remote
86-
if: github.repository_owner == 'XRPLF' && github.event_name != 'pull_request'
86+
if: ${{ github.repository_owner == 'XRPLF' && github.event_name != 'pull_request' }}
8787
run: conan remote login ${{ env.CONAN_REMOTE_NAME }} "${{ secrets.CONAN_REMOTE_USERNAME }}" --password "${{ secrets.CONAN_REMOTE_PASSWORD }}"
8888

8989
- name: Upload Conan packages
90-
if: github.repository_owner == 'XRPLF' && github.event_name != 'pull_request' && github.event_name != 'schedule'
90+
if: ${{ github.repository_owner == 'XRPLF' && github.event_name != 'pull_request' && github.event_name != 'schedule' }}
9191
run: conan upload "*" -r=${{ env.CONAN_REMOTE_NAME }} --confirm ${{ github.event.inputs.force_upload == 'true' && '--force' || '' }}

0 commit comments

Comments
 (0)