-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Knative Automation <[email protected]>
- Loading branch information
1 parent
c8e2035
commit 2276eac
Showing
2 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,8 @@ jobs: | |
env: | ||
######################################### | ||
# Update this section each release. # | ||
RELEASE: 'v0.19' | ||
SLACK_CHANNEL: 'release-19' | ||
RELEASE: 'v0.20' | ||
SLACK_CHANNEL: 'release-20' | ||
######################################### | ||
|
||
steps: | ||
|
@@ -50,6 +50,9 @@ jobs: | |
if [[ "${{ github.event.inputs.slackChannel }}" != "" ]]; then | ||
echo "SLACK_CHANNEL=${{ github.event.inputs.slackChannel }}" >> $GITHUB_ENV | ||
fi | ||
if [[ "${{ secrets.SLACK_WEBHOOK }}" != "" ]]; then | ||
echo "SLACK_WEBHOOK=exists" >> $GITHUB_ENV | ||
fi | ||
- name: Set up Go 1.15.x | ||
uses: actions/setup-go@v2 | ||
|
@@ -142,7 +145,8 @@ jobs: | |
echo 'SLACK_TITLE=Releasability for ${{ github.repository }} @ ${{ env.RELEASE }} is NO-GO!' >> $GITHUB_ENV | ||
- name: Post status to Slack | ||
if: ${{ secrets.SLACK_WEBHOOK != '' && steps.exists.outputs.release-branch == 'false' }} | ||
# Note: using env.SLACK_WEBHOOK here because secrets are not allowed in the if block. | ||
if: env.SLACK_WEBHOOK != '' && steps.exists.outputs.release-branch == 'false' | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_ICON: http://github.com/knative.png?size=48 | ||
|
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