-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move nightly branch cut job from CircleCI to GitHub Actions (#35909)
- Loading branch information
1 parent
456e31d
commit 4492d74
Showing
2 changed files
with
30 additions
and
26 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Cuts a new nightly branch on a schedule. | ||
|
||
name: Cut Nightly Branch | ||
|
||
on: | ||
schedule: | ||
# 1 a.m. PST / 12 a.m. PDT, Tuesdays through Saturdays. | ||
- cron: '0 8 * * 2-6' | ||
|
||
jobs: | ||
sweep-experiments: | ||
if: github.repository == 'ampproject/amphtml' | ||
name: Cut Nightly Branch | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set Up Node | ||
uses: actions/[email protected] | ||
|
||
- name: Set Up Environment | ||
run: sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: ⭐ Cut Nightly Branch ⭐ | ||
run: node --unhandled-rejections=strict build-system/release-workflows/cut-nightly.js |