Skip to content

Commit

Permalink
ci: add refresh-downstreams workflow (#13)
Browse files Browse the repository at this point in the history
So that `asahi` gets refreshed automatically.
  • Loading branch information
mattkae authored Aug 6, 2024
2 parents f579843 + 0a44e52 commit c82c83a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/refresh-downstreams.yml
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 }}

0 comments on commit c82c83a

Please sign in to comment.