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(ci): add sync branch workflow for storage-refactor #6334
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d6655b3
chore(ci): add sync branch workflow for storage-refactor
noahdietz 9c7d041
add change notes
noahdietz 34b7d02
only on weekdays
noahdietz 3bb23b5
change job names
noahdietz a4d146a
Merge branch 'main' into sync-branch
noahdietz 633c469
add cloud-storage-dpe to reviewers
noahdietz b95297a
Merge branch 'main' into sync-branch
noahdietz fb77e19
Merge branch 'main' into sync-branch
noahdietz 6ef2b55
Merge branch 'main' into sync-branch
gcf-merge-on-green[bot] 8473c37
Merge branch 'main' into sync-branch
gcf-merge-on-green[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Sync storage-refactor | ||
on: | ||
schedule: | ||
- cron: 0 23 * * 1-5 # Week-daily at 23:00 UTC / 16:00 PST | ||
workflow_dispatch: {} # Allow manual triggering | ||
|
||
jobs: | ||
sync-storage-refactor: | ||
runs-on: ubuntu-latest | ||
name: Syncing storage-refactor | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Get change notes | ||
id: changes | ||
run: echo ::set-output name=change_notes::$(git log storage-refactor..main --oneline --pretty=format:%s) | ||
- name: Opening pull request | ||
id: pull | ||
# https://github.com/marketplace/actions/sync-branches | ||
uses: tretuna/sync-branches@1.4.0 | ||
with: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
FROM_BRANCH: "main" | ||
TO_BRANCH: "storage-refactor" | ||
REVIEWERS: '["noahdietz", "cloud-storage-dpe"]' | ||
PULL_REQUEST_TITLE: "chore: sync main to storage-refactor" | ||
PULL_REQUEST_BODY: "${{ steps.changes.outputs.change_notes }}" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this needed?
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.
I'm not sure, it is from the README of the Action: https://github.com/marketplace/actions/sync-branches. So I'm guessing yes?