Skip to content

Commit

Permalink
Woot
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Gibson committed Mar 18, 2024
1 parent d07f904 commit 10d2c9c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test_publish_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: ncstate-sat/actions
path: /tmp/actions
path: ~/.actions

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Send Failure Message on Slack if Tests Fail
if: ${{ failure() }}
uses: /tmp/actions/slack-updates
uses: ~/.actions/slack-updates
with:
channel-id: ${{ github.event.inputs.slack-channel-id || env.SLACK_CHANNEL_ID }}
message: "The tests for `${{ env.REPO_NAME }}` have failed."
Expand All @@ -71,7 +71,7 @@ jobs:
SLACK_UPDATES: ${{ github.event.inputs.slack-updates || env.SLACK_UPDATES }}

- name: Send Success Message on Slack
uses: /tmp/actions/slack-updates
uses: ~/.actions/slack-updates
with:
channel-id: ${{ github.event.inputs.slack-channel-id || env.SLACK_CHANNEL_ID }}
message: "The tests for `${{ env.REPO_NAME }}` have passed."
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: ncstate-sat/actions
path: /tmp/actions
path: ~/.actions

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
- name: Send Failure Message on Slack if Build/Publish Fails
if: ${{ failure() }}
uses: /tmp/actions/slack-updates
uses: ~/.actions/slack-updates
with:
channel-id: ${{ github.event.inputs.slack-channel-id || env.SLACK_CHANNEL_ID }}
message: "The tests for `${{ env.REPO_NAME }}` have passed, but publishing to PyPI failed."
Expand All @@ -149,7 +149,7 @@ jobs:
SLACK_UPDATES: ${{ github.event.inputs.slack-updates || env.SLACK_UPDATES }}

- name: Send Success Message on Slack
uses: /tmp/actions/slack-updates
uses: ~/.actions/slack-updates
with:
channel-id: ${{ github.event.inputs.slack-channel-id || env.SLACK_CHANNEL_ID }}
message: "A new version of `${{ env.REPO_NAME }}` has been uploaded to PyPI."
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: ncstate-sat/actions
path: /tmp/actions
path: ~/.actions

- name: Retrieve current version
run: echo "CURRENT_VERSION=v$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)" >> $GITHUB_ENV
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
- name: Send Failure Message on Slack if Release Fails
if: ${{ failure() }}
uses: /tmp/actions/slack-updates
uses: ~/.actions/slack-updates
with:
channel-id: ${{ github.event.inputs.slack-channel-id || env.SLACK_CHANNEL_ID }}
message: "The new version of `${{ env.REPO_NAME }}` has been uploaded to PyPI, but the GitHub release failed."
Expand All @@ -224,7 +224,7 @@ jobs:
SLACK_UPDATES: ${{ github.event.inputs.slack-updates || env.SLACK_UPDATES }}

- name: Send Success Message on Slack
uses: /tmp/actions/slack-updates
uses: ~/.actions/slack-updates
with:
channel-id: ${{ github.event.inputs.slack-channel-id || env.SLACK_CHANNEL_ID }}
message: "A new Github release for `${{ env.REPO_NAME }}` with version `${{ env.CURRENT_VERSION }}` has been created."
Expand Down

0 comments on commit 10d2c9c

Please sign in to comment.