chore: create GitHub action to update the canary branch#171
chore: create GitHub action to update the canary branch#171targos merged 6 commits intonodejs:mainfrom
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 }} |
|
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? |
|
Starting with a manual run: https://github.com/nodejs/node-v8/actions/runs/737865140 |

No description provided.