mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-16 01:50:40 +00:00
ci: move release commit tag
This commit is contained in:
16
.github/workflows/build-image.yml
vendored
16
.github/workflows/build-image.yml
vendored
@@ -169,6 +169,22 @@ jobs:
|
||||
echo 'EOF'
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Move latest tag to current commit
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const ref = 'tags/latest';
|
||||
try {
|
||||
await github.rest.git.updateRef({
|
||||
...context.repo, ref, sha: context.sha, force: true,
|
||||
});
|
||||
} catch (e) {
|
||||
if (e.status !== 422) throw e;
|
||||
await github.rest.git.createRef({
|
||||
...context.repo, ref: 'refs/tags/latest', sha: context.sha,
|
||||
});
|
||||
}
|
||||
|
||||
- name: Create or update release
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user