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 6425751
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 32 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
65 changes: 33 additions & 32 deletions .github/workflows/EVENT_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ jobs:
uses: ./.github/workflows/JOB_tests.yml

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 @@ -101,41 +104,39 @@ jobs:
poetry-version: "1.3.1"
- name: Build package
run: |
python ./deploy/nightly_package_setup.py
poetry build
python ./deploy/revert_nightly_setup.py
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
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 6425751

Please sign in to comment.