Skip to content

Commit 7753604

Browse files
committed
ci: Fix
1 parent 2e66434 commit 7753604

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ jobs:
7878
with:
7979
path: |
8080
build
81-
key: ${{ runner.os }}-build
81+
restore-keys:
82+
${{ runner.os }}-build
8283
- name: Build
8384
run: |
8485
xmake f --cc=gcc-14 --cxx=g++-14 -y
@@ -91,7 +92,7 @@ jobs:
9192
with:
9293
path: |
9394
build
94-
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
95+
key: ${{ runner.os }}-build-${{ needs.versioning.outputs.fullSemVer }}
9596
- name: Upload plugin as artifact
9697
uses: actions/upload-artifact@v4
9798
with:
@@ -120,7 +121,8 @@ jobs:
120121
with:
121122
path: |
122123
build
123-
key: ${{ runner.os }}-build
124+
restore-keys:
125+
${{ runner.os }}-build
124126
- name: Build
125127
run: |
126128
xmake f --policies=build.ccache:y -y
@@ -133,7 +135,7 @@ jobs:
133135
with:
134136
path: |
135137
build
136-
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
138+
key: ${{ runner.os }}-build-${{ needs.versioning.outputs.fullSemVer }}
137139
- name: Upload plugin as artifact
138140
uses: actions/upload-artifact@v4
139141
with:
@@ -221,6 +223,10 @@ jobs:
221223
run: |
222224
TAG_NAME="${{ needs.versioning.outputs.fullSemVer }}"
223225
MSG="Release v${{ needs.versioning.outputs.fullSemVer }}"
226+
227+
git config --global user.name "github-actions[bot]"
228+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
229+
224230
if git rev-parse -q --verify "refs/tags/$TAG_NAME" >/dev/null; then
225231
echo "Tag $TAG_NAME already exists"; exit 1
226232
fi

0 commit comments

Comments
 (0)