Skip to content

Commit b34e008

Browse files
committed
fix(ci): Update to work workflow
- Rename job correctly - Explicit version of action - Pass github token - Set ref for target branch of pull request
1 parent c37e200 commit b34e008

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/sync-dart-sass-version.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'aqua.yaml'
77

88
jobs:
9-
lint:
9+
run:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -25,7 +25,12 @@ jobs:
2525
- name: 'Try sync'
2626
run: |
2727
uv run tools/sync-current-sass.py
28-
- uses: 'actions-js/push@v1'
28+
- name: 'Pre push and commit'
29+
run: |
30+
git fetch
31+
git checkout origin/${{ github.event.pull_request.head.ref }} -b ${{ github.event.pull_request.head.ref }}
32+
- uses: 'actions-js/push@v1.5'
2933
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
3035
message: 'feat: Sync version text of Dart Sass'
31-
branch: ${{ github.ref_name }}
36+
branch: ${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)