From dc8f3415a7d5955f2dba5835fa989927b0ed0d24 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 3 May 2024 19:55:41 +0200 Subject: feat!: update tier 1 parsers to versions --- .github/workflows/update-parsers.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/update-parsers.yml b/.github/workflows/update-parsers.yml index ba3286428..351beef67 100644 --- a/.github/workflows/update-parsers.yml +++ b/.github/workflows/update-parsers.yml @@ -10,7 +10,11 @@ env: jobs: update-parsers: - name: Update parsers + strategy: + fail-fast: false + matrix: + tier: [1, 2] + name: Update parsers tier ${{ matrix.tier }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -35,7 +39,7 @@ jobs: (cd "$BIN_DIR"; unzip stylua*.zip) - name: Update parsers - run: ./scripts/update-parsers.lua + run: ./scripts/update-parsers.lua --tier=${{ matrix.tier }} - name: Create Pull Request uses: peter-evans/create-pull-request@v7 @@ -44,12 +48,13 @@ jobs: token: ${{ steps.app-token.outputs.token }} sign-commits: true commit-message: "bot(parsers): update ${{ env.UPDATED_PARSERS }}" - title: "Update parsers: ${{ env.UPDATED_PARSERS }}" + title: "Update parsers (tier ${{ matrix.tier }}): ${{ env.UPDATED_PARSERS }}" body: "[beep boop](https://github.com/peter-evans/create-pull-request)" - branch: update-parsers-pr + branch: update-parsers-tier-${{ matrix.tier }} base: ${{ github.head_ref }} - name: Enable Pull Request Automerge + if: ${{ matrix.tier == 2 }} env: GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: gh pr merge --rebase --auto update-parsers-pr + run: gh pr merge --rebase --auto update-parsers-tier-2 -- cgit v1.2.3-70-g09d2