Skip to content

Commit

Permalink
Merge pull request #1209 from openedx/update-weekly-workflow2
Browse files Browse the repository at this point in the history
build: Try commenting and slack notifying in separate workflow steps
  • Loading branch information
sarina authored Jul 16, 2024
2 parents a60b64f + 0383ca0 commit 31bb0cf
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/add-weekly-gh-requests.yml
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:
Expand All @@ -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 }}

0 comments on commit 31bb0cf

Please sign in to comment.