-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: create GitHub action to update the canary branch #171
Conversation
I created an empty Things to note:
|
/cc @mmarchini |
It generates for the committer and for the author (maybe also for the pusher). Are you on the OpenJS Foundation slack? We could have a |
It doesn't respect the |
It does respect that option. The issue is that it fetches all branches with |
Using a Slack channel SGTM. |
Ah, that sounds like a good use for cache then |
For Slack there are many actions out there: https://github.com/marketplace?type=actions&query=slack. I have tested https://github.com/marketplace/actions/slack-notify but haven't tested it to "notify on failure". Other Actions look easier to use to notify on failure (or after every run, if that's what we want). |
I created the |
Sorry @targos I did not mean to undraft this! |
@targos fyi I added SLACK_WEBHOOK Secret to the repo, so we can use it to notify the channel when sync fails |
run: | | ||
ACTIONS_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}?check_suite_focus=true" | ||
SLACK_PAYLOAD="{\"username\": \"canary_bot\", \"text\": \"*Canary update failed!*\n\nRun: ${ACTIONS_URL}\", \"icon_emoji\": \":bell:\"}" | ||
curl -X POST --data-urlencode "payload=${SLACK_PAYLOAD}" ${{ secrets.SLACK_WEBHOOK }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last try: https://github.com/targos/node-v8/runs/1800903471?check_suite_focus=true Note that we apparently need a custom GitHub token with "workflows" permission, otherwise the push to |
@mmarchini @gengjiawen would you like to have a new look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Starting with a manual run: https://github.com/nodejs/node-v8/actions/runs/737865140 |
No description provided.