mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-16 01:50:40 +00:00
ci: update actions version; move release date
This commit is contained in:
19
.github/workflows/build-image.yml
vendored
19
.github/workflows/build-image.yml
vendored
@@ -170,7 +170,7 @@ jobs:
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Move latest tag to current commit
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
const ref = 'tags/latest';
|
||||
@@ -193,3 +193,20 @@ jobs:
|
||||
name: PS5 Linux Image (latest)
|
||||
body: ${{ steps.body.outputs.text }}
|
||||
make_latest: true
|
||||
|
||||
- name: Refresh release publish date
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
const { data: rel } = await github.rest.repos.getReleaseByTag({
|
||||
...context.repo, tag: 'latest',
|
||||
});
|
||||
// Toggling draft off->on->off re-publishes, resetting published_at
|
||||
// to now while keeping the same release (reactions/comments survive).
|
||||
await github.rest.repos.updateRelease({
|
||||
...context.repo, release_id: rel.id, draft: true,
|
||||
});
|
||||
await github.rest.repos.updateRelease({
|
||||
...context.repo, release_id: rel.id, draft: false, make_latest: 'true',
|
||||
});
|
||||
core.info(`re-published release ${rel.id}`);
|
||||
|
||||
Reference in New Issue
Block a user