Skip to content

Commit

Permalink
feat(ci): add smarter results job
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed May 10, 2024
1 parent 18c1b42 commit 286ea7f
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ 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 @@ -69,21 +86,10 @@ jobs:
package: ${{ matrix.package }}
tag: ${{ steps.tag.outputs.full_tag }}

pr-description-add:
name: PR Description Add
results:
name: PR Results
needs: [builds]
if: always() && (! failure())
if: always() && (!failure()) && (!cancelled())
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). :)
- run: echo "Success!"

0 comments on commit 286ea7f

Please sign in to comment.