-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change weekly issue cron to Monday morning
- Loading branch information
Showing
1 changed file
with
3 additions
and
36 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,11 +1,12 @@ | ||
name: Create weekly issues | ||
on: | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
- cron: 0 14 * * 1 | ||
workflow_dispatch: {} | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ORGANIZATION: openedx | ||
|
||
jobs: | ||
create_issue: | ||
|
@@ -18,38 +19,4 @@ jobs: | |
gh issue create --repo "openedx/axim-engineering" \ | ||
--title "Welcome new discourse members" \ | ||
--label "github-request" \ | ||
--body "Go through [new discourse introductions](https://discuss.openedx.org/c/community/introductions/18) and welcome new people to the community." | ||
tag_and_notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.GRAPHQL_AUTH_APP_ID }} | ||
private_key: ${{ secrets.GRAPHQL_AUTH_APP_PEM }} | ||
|
||
- name: Tag axim on-call | ||
env: | ||
URL: ${{ github.event.issue.comments_url }} | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
run: | | ||
curl \ | ||
-X POST \ | ||
$URL \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: token $GITHUB_TOKEN" \ | ||
--data '{ "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": "${{ github.event.issue.title }}\nAuthor: ${{ github.event.issue.user.login }}\nURL: https://www.github.com/openedx/axim-engineering/issues/${{ github.event.issue.number }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
--body "@openedx/axim-oncall Go through [new discourse introductions](https://discuss.openedx.org/c/community/introductions/18) and welcome new people to the community." |