From 10d2c9c3b5d7043cb493467c2d26047453ea7814 Mon Sep 17 00:00:00 2001 From: Jeremy Gibson Date: Mon, 18 Mar 2024 13:00:41 -0400 Subject: [PATCH] Woot --- .github/workflows/test_publish_and_release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test_publish_and_release.yml b/.github/workflows/test_publish_and_release.yml index 7fe129c..06f30e2 100644 --- a/.github/workflows/test_publish_and_release.yml +++ b/.github/workflows/test_publish_and_release.yml @@ -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 @@ -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." @@ -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." @@ -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 @@ -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." @@ -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." @@ -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 @@ -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." @@ -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."