Skip to content

Commit

Permalink
Added CODEOWNERS file for changes to GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Aug 21, 2024
1 parent 6b9eff4 commit a112080
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Notify code owners about changes to GitHub actions
.github/ @JBWilkie
62 changes: 33 additions & 29 deletions .github/workflows/EVENT_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
run_e2e:
needs: run_tests
uses: ./.github/workflows/JOB_e2e.yml
secrets:
E2E_API_KEY: ${{ secrets.E2E_API_KEY }}
E2E_ENVIRONMENT: ${{ secrets.E2E_ENVIRONMENT }}
E2E_TEAM: ${{ secrets.E2E_TEAM }}

release:
needs: [run_tests, run_e2e]
Expand Down Expand Up @@ -110,32 +114,32 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/

notify_release:
needs: [release]
if: success()
uses: ./.github/workflows/JOB_slack_message.yml
secrets: inherit
with:
icon: ":rocket:"
at_team: true
message: |
:tada: *${{ inputs.release_tag || github.event.release.tag_name }}* has been released!
:link:
- https://pypi.org/project/darwin-py
- ${{ github.event.release.html_url }}
notify_failed_release:
needs: [release]
if: failure()
uses: ./.github/workflows/JOB_slack_message.yml
secrets: inherit
with:
icon: ":warning:"
at_team: true
message: |
:warning: *${{ inputs.release_tag || github.event.release.tag_name }}* Release has failed to be released!
*An error occurred performing release, and you may need to release manually.*
:link:
- ${{ github.event.release.html_url }}
# notify_release:
# needs: [release]
# if: success()
# uses: ./.github/workflows/JOB_slack_message.yml
# secrets: inherit
# with:
# icon: ":rocket:"
# at_team: true
# message: |
# :tada: *${{ inputs.release_tag || github.event.release.tag_name }}* has been released!
# :link:
# - https://pypi.org/project/darwin-py
# - ${{ github.event.release.html_url }}

# notify_failed_release:
# needs: [release]
# if: failure()
# uses: ./.github/workflows/JOB_slack_message.yml
# secrets: inherit
# with:
# icon: ":warning:"
# at_team: true
# message: |
# :warning: *${{ inputs.release_tag || github.event.release.tag_name }}* Release has failed to be released!

# *An error occurred performing release, and you may need to release manually.*

# :link:
# - ${{ github.event.release.html_url }}
7 changes: 7 additions & 0 deletions .github/workflows/JOB_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ on:
paths:
- "e2e_tests/**"
workflow_call:
secrets:
E2E_API_KEY:
required: true
E2E_ENVIRONMENT:
required: true
E2E_TEAM:
required: true
jobs:
e2e:
name: End to End Testing
Expand Down

0 comments on commit a112080

Please sign in to comment.