Skip to content

Commit

Permalink
chore: discord broadcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSCar committed Sep 18, 2024
1 parent 0391862 commit 661b7ba
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,34 @@ jobs:
docker compose up -d
docker image prune -f
discord:
needs: deploy
runs-on: ubuntu-latest
continue-on-error: true
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
steps:
- name: Install dependencies
run: |
sudo apt install jq -y
sudo apt install curl -y
- name: Get API version
id: version
run: |
api_version=$(curl https://apinext.collegefootballdata.com/api-docs.json | jq .info.version)
api_version=${api_version%\"}
api_version=${api_version#\"}
echo "api_version=$api_version" >> $GITHUB_ENV
- name: Send Discord message
uses: sarisia/actions-status-discord@v1
with:
nodetail: true
title: 'New version of REST API v2 deployed'
url: 'https://github.com/CFBD/cfb-api-v2'
content: |
`${{ env.api_version}}`
`${{ env.COMMIT_MESSAGE }}`
buildPython:
needs: deploy
runs-on: ubuntu-latest
Expand Down

0 comments on commit 661b7ba

Please sign in to comment.