summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml41
-rw-r--r--.github/workflows/generate_release.yml4
2 files changed, 41 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c662b02..ffa1165 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -218,7 +218,7 @@ jobs:
- name: Install Syft
id: setup-syft
if: github.event_name != 'pull_request'
- uses: anchore/sbom-action/download-syft@3ad7283483fc7af8ff2b4ea19663c2d5ca935e26 # v0.24.2
+ uses: anchore/sbom-action/download-syft@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3
with:
syft-version: v1.44.0
@@ -267,7 +267,7 @@ jobs:
- name: Install ORAS
if: github.event_name != 'pull_request'
- uses: oras-project/setup-oras@1d808f7d7f6995cc68b7bf507bfe5c5446e1dc9d # v2.0.1
+ uses: oras-project/setup-oras@005458ad77f1c8facd38a094e4af2e69e5607ff4 # v2.0.2
- name: Upload RPM SBOM
if: github.event_name != 'pull_request'
@@ -322,3 +322,40 @@ jobs:
with:
release_tag: ${{ needs.build_push.outputs.release_tag }}
handwritten: ${{ inputs.handwritten }}
+
+ kickoff_gamemode_news:
+ name: Refresh Game Mode announcements
+ needs: [generate_release]
+ if: github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing'
+ runs-on: ubuntu-24.04
+ permissions:
+ contents: read
+ steps:
+ - name: Resolve announcement branch
+ id: target
+ run: |
+ branch="${GITHUB_REF_NAME}"
+ [[ "${branch}" == "main" ]] && branch="stable"
+ echo "branch=${branch}" >> "$GITHUB_OUTPUT"
+
+ - name: Check dispatch token
+ id: token
+ env:
+ DISPATCH_PAT: ${{ secrets.PAT }}
+ run: |
+ if [[ -z "${DISPATCH_PAT}" ]]; then
+ echo "::warning::Skipping Game Mode announcements dispatch: configure the PAT secret."
+ echo "available=false" >> "$GITHUB_OUTPUT"
+ else
+ echo "available=true" >> "$GITHUB_OUTPUT"
+ fi
+
+ - name: Kickoff Game Mode announcements
+ if: steps.token.outputs.available == 'true'
+ uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4
+ continue-on-error: true
+ with:
+ token: ${{ secrets.PAT }}
+ repository: AeroCore-IO/aerocore-os-gamemode-news
+ event-type: build-announcements
+ client-payload: '{"branch": "${{ steps.target.outputs.branch }}"}'
diff --git a/.github/workflows/generate_release.yml b/.github/workflows/generate_release.yml
index bcdd948..980f95c 100644
--- a/.github/workflows/generate_release.yml
+++ b/.github/workflows/generate_release.yml
@@ -35,10 +35,10 @@ jobs:
fetch-depth: 0
- name: Install ORAS
- uses: oras-project/setup-oras@1d808f7d7f6995cc68b7bf507bfe5c5446e1dc9d # v2.0.1
+ uses: oras-project/setup-oras@005458ad77f1c8facd38a094e4af2e69e5607ff4 # v2.0.2
- name: Log in to GHCR
- uses: docker/login-action@v3
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}