We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08f2c01 commit 4702244Copy full SHA for 4702244
.github/workflows/cmake-single-platform.yml
@@ -11,10 +11,13 @@ jobs:
11
pack:
12
name: Generate pack
13
runs-on: ubuntu-22.04
14
+ permissions:
15
+ contents: write
16
steps:
17
- uses: actions/checkout@v3
18
with:
19
fetch-depth: 0
20
+ token: ${{ secrets.GITHUB_TOKEN }}
21
22
- name: Fetch tags
23
if: ${{ github.event_name == 'release' }}
@@ -50,5 +53,7 @@ jobs:
50
53
git config user.name "github-actions[bot]"
51
54
git config user.email "github-actions[bot]@users.noreply.github.com"
52
55
git add cmsis-pack/*.pack
- git diff --staged --quiet || git commit -m "chore: Update CMSIS pack files [skip ci]"
- git push
56
+ if ! git diff --staged --quiet; then
57
+ git commit -m "chore: Update CMSIS pack files [skip ci]"
58
+ git push origin HEAD:develop
59
+ fi
0 commit comments