From 3a37e8a19f55094e1a4db24e5ad609eaf1f4919e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Mon, 15 Apr 2024 11:30:12 +0200 Subject: [PATCH] ci: auto-refresh `core24`, too --- ...libs-build.yml => refresh-downstreams.yml} | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) rename .github/workflows/{mir-libs-build.yml => refresh-downstreams.yml} (50%) diff --git a/.github/workflows/mir-libs-build.yml b/.github/workflows/refresh-downstreams.yml similarity index 50% rename from .github/workflows/mir-libs-build.yml rename to .github/workflows/refresh-downstreams.yml index e54dd2b..199d904 100644 --- a/.github/workflows/mir-libs-build.yml +++ b/.github/workflows/refresh-downstreams.yml @@ -1,4 +1,4 @@ -name: Refresh `mir-libs-build` +name: Refresh downstreams on: push: @@ -6,25 +6,32 @@ on: - 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: "mir-ci-bot@canonical.com" 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 }}