Skip to content

Commit 976a151

Browse files
authored
Update spec.yml (#3353)
Fix the condition for running the publish spec step (a follow up to #3351).
1 parent da07de8 commit 976a151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/spec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Spec
1+
name: Dart CI
22

33
on:
44
# Run on PRs and pushes to the default branch.
@@ -37,7 +37,7 @@ jobs:
3737
cp dartLangSpec.pdf firebase/DartLangSpecDraft.pdf
3838
3939
- name: Upload specification
40-
if: ${{ github.event.pull_request.merged }}
40+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
4141
uses: FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2
4242
with:
4343
repoToken: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)