diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7f84d2..c54ed3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -231,8 +231,37 @@ jobs: draft: false prerelease: false + - name: Get Latest Release + run: | + echo "LATEST_RELEASE=$(gh release list --limit 1 | awk '{print $1}')" >> $GITHUB_ENV + echo "The latest release tag is $LATEST_RELEASE" + - name: Send Slack Notification env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} run: | - curl -X POST -H 'Content-type: application/json' --data '{"blocks": [{"type": "header","text": {"type": "plain_text","text": "New Release Alert :smile::tada:","emoji": true}},{"type": "section","fields": [{"type": "mrkdwn","text": "*Service:*\nFull-Stack-Docker-Tazama"},{"type": "mrkdwn","text": "*Release*\n"}]},{"type": "section","fields": [{"type": "mrkdwn","text": "*Code:*\n"},{"type": "mrkdwn","text": "*Changes:*\n"}]}]}' ${{ secrets.SLACK_WEBHOOK_URL }} + curl -X POST -H 'Content-type: application/json' --data '{ + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "New Release Alert :tazama:", + "emoji": true + } + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Github Repository:*\nhttps://github.com/${{ github.repository }}" + }, + { + "type": "mrkdwn", + "text": "*Release:*\n" + } + ] + } + ] + }' ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/sync-workflows.yml b/.github/workflows/sync-workflows.yml index 3506920..357e759 100644 --- a/.github/workflows/sync-workflows.yml +++ b/.github/workflows/sync-workflows.yml @@ -67,6 +67,7 @@ jobs: frms-coe-lib frms-coe-startup-lib auth-lib + rule-901 SPECIFIC_FILES: dockerhub-image-build.yml # List of specific files not to copy to certain repositories SPECIFIC_REPOS: | # List of specific repositories needing specific files not included lumberjack @@ -76,6 +77,7 @@ jobs: frms-coe-lib frms-coe-startup-lib auth-lib + rule-901 PR_REVIEWERS: ${{ secrets.GH_USERNAME }} # List of reviewers GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} run: |