-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add refresh-downstreams workflow (#13)
So that `asahi` gets refreshed automatically.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Refresh downstreams | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Refresh: | ||
runs-on: ubuntu-latest | ||
|
||
timeout-minutes: 5 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ref: | ||
- asahi | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
# so that we know what to cherry-pick from | ||
fetch-depth: 2 | ||
|
||
- name: Update `${{ matrix.ref }}` | ||
env: | ||
GIT_COMMITTER_NAME: "Mir CI Bot" | ||
GIT_COMMITTER_EMAIL: "mir-ci-bot@canonical.com" | ||
run: | | ||
# bring upstream changes in | ||
git fetch origin ${{ matrix.ref }} | ||
git cherry-pick HEAD..origin/${{ matrix.ref }} | ||
git push --force origin HEAD:${{ matrix.ref }} |