diff options
author | Allan Wang <me@allanwang.ca> | 2021-09-12 02:45:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-12 02:45:36 -0700 |
commit | c9809793af3d4baa17cf943b94d8d6acbfeb8bc8 (patch) | |
tree | 6e94bed1077257c5c1968749433f84718b24df28 | |
parent | caa923afedffa162630f236fa9cc8b6a811aef90 (diff) | |
download | frost-c9809793af3d4baa17cf943b94d8d6acbfeb8bc8.tar.gz frost-c9809793af3d4baa17cf943b94d8d6acbfeb8bc8.tar.bz2 frost-c9809793af3d4baa17cf943b94d8d6acbfeb8bc8.zip |
Add discord hook (#1801)
* Add discord hook
* Add embed color and new message
* Fix substitution
* Fix substitution
* Test
* Dec color
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Enable full flow [skip ci]
-rw-r--r-- | .github/workflows/android.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ae803d8c..c5401c5c 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -190,7 +190,20 @@ jobs: - name: Echo Result if: ${{ env.SHOULD_RELEASE == 'true' }} - run: echo "Created release at https://github.com/${{ env.OWNER }}/${{ env.REPO }}/releases/tag/v${{ env.RELEASE_ID_NUMBER }}" + run: | + TEST_RELEASE_URL="https://github.com/${{ env.OWNER }}/${{ env.REPO }}/releases/tag/v${{ env.RELEASE_ID_NUMBER }}" + echo "Created release at $TEST_RELEASE_URL" + echo "TEST_RELEASE_URL=${TEST_RELEASE_URL}" >> $GITHUB_ENV + + - name: Discord Ping + uses: Sniddl/discord-commits@v1.3 + with: + webhook: ${{ secrets.DISCORD_WEBHOOK }} + # Frost Blue: 0xff3b5998 / 3889560 + embed: '{"title":"Frost v{{ env.RELEASE_ID_NUMBER }}","color":3889560,"url":"{{ commit.url }}","author":{"name":"{{ github.context.payload.repository.owner.login }}","icon_url":"{{ github.context.payload.repository.owner.avatar_url }}"},"fields":[{"name":"Test Release","value":"{{ env.TEST_RELEASE_URL }}"},{"name":"Action CI","value":"https://github.com/{{ github.context.payload.repository.full_name }}/actions/runs/{{ env.RUN_ID }}"}]}' + last-commit-only: false + env: + RUN_ID: ${{ github.RUN_ID }} |