-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
7 deletions.
There are no files selected for viewing
21 changes: 14 additions & 7 deletions
21
.github/workflows/mir-libs-build.yml → .github/workflows/refresh-downstreams.yml
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 |
---|---|---|
@@ -1,30 +1,37 @@ | ||
name: Refresh `mir-libs-build` | ||
name: Refresh downstreams | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
MirLibs: | ||
Refresh: | ||
runs-on: ubuntu-latest | ||
|
||
timeout-minutes: 5 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ref: | ||
- mir-libs-build | ||
- core24 | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
# so that we know what to cherry-pick from | ||
fetch-depth: 2 | ||
|
||
- name: Update `mir-libs-build` | ||
- name: Update `${{ matrix.ref }}` | ||
env: | ||
GIT_COMMITTER_NAME: "Mir CI Bot" | ||
GIT_COMMITTER_EMAIL: "[email protected]" | ||
run: | | ||
# bring mir-libs changes in | ||
git fetch origin mir-libs-build | ||
git cherry-pick HEAD..origin/mir-libs-build | ||
git fetch origin ${{ matrix.ref }} | ||
git cherry-pick HEAD..origin/${{ matrix.ref }} | ||
git push --force origin HEAD:mir-libs-build | ||
git push --force origin HEAD:${{ matrix.ref }} |