Skip to content

Commit

Permalink
Roll results and PR description decorator together
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed May 10, 2024
1 parent 286ea7f commit c53a402
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@ concurrency:
cancel-in-progress: true

jobs:
pr-description-add:
name: PR Description Add
runs-on: ubuntu-22.04
permissions:
pull-requests: write
timeout-minutes: 1
steps:
- uses: bcgov-nr/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
add_markdown: |
---
Thanks for the PR!
Any new images should be viewable with [our repo packages](https://github.com/orgs/bcgov/packages?repo_name=nr-containers). :)
scrub:
name: Scrub for changed Dockerfiles
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -86,10 +69,23 @@ jobs:
package: ${{ matrix.package }}
tag: ${{ steps.tag.outputs.full_tag }}

results:
name: PR Results
needs: [builds]
pr-description-add:
name: PR Description Add
needs: [scrub, builds]
if: always() && (!failure()) && (!cancelled())
runs-on: ubuntu-22.04
permissions:
pull-requests: write
timeout-minutes: 1
steps:
- run: echo "Success!"
- uses: bcgov-nr/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
add_markdown: |
---
Thanks for the PR!
Any new images should be viewable with [our repo packages](https://github.com/orgs/bcgov/packages?repo_name=nr-containers). :)
Build object: ${{ fromJSON(needs.scrub.outputs.json) }}

0 comments on commit c53a402

Please sign in to comment.