Skip to content

Commit

Permalink
clean up, try out webhook
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Meijer <[email protected]>
  • Loading branch information
Alex Meijer committed Oct 3, 2024
1 parent fa46efd commit 38a4969
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,35 @@ jobs:
just integration-test-all-plugins
notify-fail:
needs: [integration-test-runner]
runs-on: depot-ubuntu-22.04
if: failure()
steps:
- name: Slack notify
id: slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"workflow": "${{github.workflow}}",
"message": "Plugin Integration tests have failed! Please check the logs for more information."
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
notify-success:
needs: [integration-test-runner]
runs-on: depot-ubuntu-22.04
if: success()
steps:
- name: Slack notify
id: slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"workflow": "${{github.workflow}}",
"message": "Plugin Integration tests have passed! :tada:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
11 changes: 1 addition & 10 deletions .github/workflows/update-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,13 @@ jobs:
run: |
plugins=$(ls pkg/plugins | tr -s ' ' | sort)
echo "got plugins: $plugins"
echo '
# this manifest contains the name of every currently implemented plugin. it can be pulled via https://github.com/opencost/opencost-plugins/raw/main/manifest to get an up to date list of current plugins.
echo '# this manifest contains the name of every currently implemented plugin. it can be pulled via https://github.com/opencost/opencost-plugins/raw/main/manifest to get an up to date list of current plugins.
' > manifest
echo "$plugins" >> manifest
echo "manifest updated"
echo "manifest contents:"
cat manifest
# - uses: EndBug/add-and-commit@v9
# name: commit updated manifest file
# with:
# add: 'manifest'
# commit: --signoff
# message: 'update manifest'
# author_name: 'cliffcolvin'
# github_token:
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@noreply.example.com"
Expand Down

0 comments on commit 38a4969

Please sign in to comment.