Release v3.13.0 #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Notify | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
notify: | |
name: Send job complete notification | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Common Setup | |
uses: ./.github/actions/common-setup | |
- name: Retrieve Project Name | |
run: echo "PROJECT_NAME=$(${{github.workspace}}/gradlew -q printProjectName)" >> $GITHUB_ENV | |
id: project_name | |
- name: Set release environment | |
run: | | |
echo "RELEASE_TYPE=release" >> $GITHUB_ENV | |
echo "RELEASE_ADDR=https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}" >> $GITHUB_ENV | |
- name: Notify | |
uses: appleboy/[email protected] | |
with: | |
webhook_id: ${{ secrets.DISCORD_RELEASE_WEBHOOK_ID || secrets.DISCORD_WEBHOOK_ID }} | |
webhook_token: ${{ secrets.DISCORD_RELEASE_WEBHOOK_TOKEN || secrets.DISCORD_WEBHOOK_TOKEN }} | |
color: "#00FF00" | |
username: "${{ env.PROJECT_NAME }} Release Bot" | |
message: > | |
An ${{ env.PROJECT_NAME }} ${{ env.RELEASE_TYPE }} was deployed by ${{ github.actor }}: | |
${{ env.RELEASE_ADDR }} |