-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use GitHub Actions to update the Status Chart #1769
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
Conversation
Co-authored-by: Yeming Liu <Yeming.Liu@microsoft.com>
Co-authored-by: Casey Carter <cartec69@gmail.com>
|
I've pushed one more change to make the action succeed when there's nothing to do (e.g. if it's being run manually when less than a day has elapsed, or if it's a scheduled run but a manual push had recently updated the tables). git diff-index --quiet HEAD || git commit -m "Automated update."to attempt the commit only when the working tree has changed. ( I've tested this in my fork, along with the suggested change of scoping the PAT to just the |
|
This caused me a weird problem after I updated main branch in my fork from upstream/main. It tries to run this but fails because I don't have gh-pages branch in my fork (and it sends me annoying emails that it failed). Would it be possible to move it to that branch? |
|
@AdamBucior Hmm - according to my understanding, only the default branch can run scheduled workflows, so this has to be in Alternatively, it looks like we can teach the action to run only for microsoft/STL. The documentation indicates that |
Followup to #1764. Thanks again to @isra-fel.
This adds
.github/workflows/update-status-chart.ymltomain, which will tell GitHub Actions to update the Status Chart once a day. (At 7 AM UTC; that's because the Status Chart inspects issues at 11 PM Pacific Time, which is 6 AM UTC during Pacific Daylight Time (UTC-7) and 7 AM UTC during Pacific Standard Time (UTC-8). The run isn't instantaneous, and it appears that GitHub waits a few minutes to load-balance; any amount of delay is fine.)I've re-enabled GitHub Actions for microsoft/STL, set the permissions to allow actions created by GitHub (this uses only
actions/checkout@v2andactions/setup-node@v2), and deleted the ancient workflows from our initial experimentation almost a year ago. Finally, I've relaxed the branch protection policy forgh-pages, which would prevent these automated commits.