Skip to content

Commit

Permalink
ci: Fix bad workflow syntax
Browse files Browse the repository at this point in the history
My previous fix to this workflow made a mistake in the syntax of the checkout ref.
  • Loading branch information
joeyparrish committed Nov 6, 2024
1 parent 9803243 commit e55c856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: repo-src
ref: inputs.ref || (github.event.number && format('refs/pull/{0}/merge', github.event.number))
ref: ${{ inputs.ref || (github.event.number && format('refs/pull/{0}/merge', github.event.number)) }}

- name: Configure Build Matrix
id: configure
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: inputs.ref || (github.event.number && format('refs/pull/{0}/merge', github.event.number))
ref: ${{ inputs.ref || (github.event.number && format('refs/pull/{0}/merge', github.event.number)) }}

- name: Set Python version
uses: actions/setup-python@v5
Expand Down

0 comments on commit e55c856

Please sign in to comment.