WORKFLOW: enhanced for PR and posting on PR, renamed

This commit is contained in:
XargonWan 2024-12-28 09:44:03 +09:00
parent c4e63a0124
commit b9aabdd616

View file

@ -188,6 +188,7 @@ jobs:
- name: Generate a token for Rekku - name: Generate a token for Rekku
id: generate-rekku-token id: generate-rekku-token
uses: actions/create-github-app-token@v1 uses: actions/create-github-app-token@v1
if: github.event_name != 'pull_request'
with: with:
app-id: ${{ vars.REKKU_APP_ID }} app-id: ${{ vars.REKKU_APP_ID }}
private-key: ${{ secrets.REKKU_PRIVATE_KEY }} private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
@ -231,7 +232,22 @@ jobs:
RetroDECK*.flatpak.sha RetroDECK*.flatpak.sha
RetroDECK*Artifact.tar.gz RetroDECK*Artifact.tar.gz
- name: Post PR comment with artifacts
if: github.event_name == 'pull_request'
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
header: "RetroDECK Build Artifacts"
message: |
A build for this pull request has completed successfully.
Codenname: ${{ steps.version-tag.outputs.TAG }}
Here are the artifacts to install and test:
- RetroDECK Flatpak: [RetroDECK.flatpak](./retrodeck-artifacts/RetroDECK.flatpak)
- SHA256 Checksum: [RetroDECK.flatpak.sha](./retrodeck-artifacts/RetroDECK.flatpak.sha)
- Artifact Bundle: [RetroDECKArtifact.tar.gz](./retrodeck-artifacts/RetroDECKArtifact.tar.gz)
GitHub-publish: GitHub-publish:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: Build_RetroDECK needs: Build_RetroDECK
env: env:
@ -243,6 +259,7 @@ jobs:
- name: Generate a token for Rekku - name: Generate a token for Rekku
id: generate-rekku-token id: generate-rekku-token
uses: actions/create-github-app-token@v1 uses: actions/create-github-app-token@v1
if: github.event_name != 'pull_request'
with: with:
app-id: ${{ vars.REKKU_APP_ID }} app-id: ${{ vars.REKKU_APP_ID }}
private-key: ${{ secrets.REKKU_PRIVATE_KEY }} private-key: ${{ secrets.REKKU_PRIVATE_KEY }}