mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
WORKFLOW: enhanced for PR and posting on PR, renamed
This commit is contained in:
parent
c4e63a0124
commit
b9aabdd616
|
@ -188,6 +188,7 @@ jobs:
|
|||
- name: Generate a token for Rekku
|
||||
id: generate-rekku-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
app-id: ${{ vars.REKKU_APP_ID }}
|
||||
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
||||
|
@ -231,7 +232,22 @@ jobs:
|
|||
RetroDECK*.flatpak.sha
|
||||
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:
|
||||
if: github.event_name != 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build_RetroDECK
|
||||
env:
|
||||
|
@ -243,6 +259,7 @@ jobs:
|
|||
- name: Generate a token for Rekku
|
||||
id: generate-rekku-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
app-id: ${{ vars.REKKU_APP_ID }}
|
||||
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
Loading…
Reference in a new issue