-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1209 from openedx/update-weekly-workflow2
build: Try commenting and slack notifying in separate workflow steps
- Loading branch information
Showing
1 changed file
with
16 additions
and
3 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Create weekly issues | ||
on: | ||
schedule: | ||
- cron: 0 12 * * 2 | ||
- cron: 0 14 * * 2 | ||
workflow_dispatch: {} | ||
|
||
env: | ||
|
@@ -22,5 +22,18 @@ jobs: | |
--body "Go through [new discourse | ||
introductions](https://discuss.openedx.org/c/community/introductions/18) | ||
and welcome new people to the community.") | ||
gh issue comment "$new_issue_url" \ | ||
--body "@openedx/axim-oncall heads up on this request" | ||
echo "NEW_ISSUE_URL=$new_issue_url" >> $GITHUB_ENV | ||
- name: Comment on issue | ||
run: gh issue comment $NEW_ISSUE_URL --body "@openedx/axim-oncall heads up on this request" | ||
|
||
- name: Send custom JSON data to Slack workflow | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
# This data can be any valid JSON from a previous step in the GitHub Action | ||
payload: | | ||
{ | ||
"msg": "$NEW_ISSUE_URL" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |