Skip to content

Commit cb174b4

Browse files
Fix push workflow syntax for nightly release job.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 40f8e87 commit cb174b4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/push.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
name: Check Formatting 🔍
1616
if: github.ref_name == 'master' || github.ref_name == 'main'
1717
uses: ./.github/workflows/check-format.yaml
18-
continue-on-error: true
1918
permissions:
2019
contents: read
2120

@@ -28,15 +27,12 @@ jobs:
2827

2928
publish-nightly:
3029
name: Publish Plugin Build 📦
31-
if: |
32-
always() &&
33-
needs.build-project.result != 'cancelled' &&
34-
(github.ref_name == 'master' || github.ref_name == 'main') &&
35-
github.ref_type == 'branch'
3630
needs: build-project
31+
if: ${{ always() && needs.build-project.result != 'cancelled' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') }}
3732
runs-on: ubuntu-24.04
3833
permissions:
3934
contents: write
35+
actions: read
4036
defaults:
4137
run:
4238
shell: bash

0 commit comments

Comments
 (0)