Skip to content

Commit bae2ce9

Browse files
authored
chore: fix if statement in github workflow (#1347)
PR #1343 was supposed to fix #1342 but the issue still persists. See [this](https://github.com/parthea/google-api-python-client/actions/runs/824759723) github action from my fork. The root cause turned out to be the multiline format of the `if` statement of `main.yml`. I expected the pipe `|` character to allow `if` statements to be used in a multiline format however the actual behaviour is different than I expected. This PR converts the check to a single line `if` statement. Using the fix in this PR the workflow was correctly skipped in parthea/pull/1.
1 parent 27f691d commit bae2ce9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
build:
2626
name: Update Discovery Artifacts PR
2727
runs-on: ubuntu-latest
28-
if: |
29-
${{github.repository == 'googleapis/google-api-python-client'}}
28+
if: ${{github.repository == 'googleapis/google-api-python-client'}}
3029
steps:
3130
- name: Get current date
3231
id: date

0 commit comments

Comments
 (0)