Skip to content

Commit 6b87e07

Browse files
authored
Update submodules_update.yml
1 parent de4d12f commit 6b87e07

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/submodules_update.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ jobs:
3030
git config --global user.email "actions@github.com"
3131
git config --global user.name "GitHub Actions - update submodules"
3232
git commit -am "Update submodules" || echo "No changes to commit"
33-
checks:
34-
needs: update
35-
uses: ./.github/workflows/checks.yml
36-
push:
37-
runs-on: ubuntu-latest
38-
needs: checks
39-
steps:
40-
- name: Push
41-
run: |
42-
git push
33+
- name: Push to protected branch
34+
uses: CasperWA/push-protected@v2
35+
with:
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
ref: ${{ github.ref }}
38+
unprotect_reviews: true

0 commit comments

Comments
 (0)