From b2bd7a33a24d56813b1607b768a71d6e4e3f4800 Mon Sep 17 00:00:00 2001 From: Rin Kuryloski Date: Fri, 17 May 2024 11:21:42 +0200 Subject: [PATCH] Setup erlang for the gazelle workflow It must have been removed from the default actions image --- .github/workflows/gazelle-scheduled.yaml | 7 ++++++- .github/workflows/gazelle.yaml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gazelle-scheduled.yaml b/.github/workflows/gazelle-scheduled.yaml index 720b755bf84b..06ff3ef4923d 100644 --- a/.github/workflows/gazelle-scheduled.yaml +++ b/.github/workflows/gazelle-scheduled.yaml @@ -5,7 +5,7 @@ on: jobs: bazel-run-gazelle: name: bazel run gazelle - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: max-parallel: 1 fail-fast: false @@ -21,6 +21,11 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ matrix.target_branch }} + - name: Configure Erlang + uses: erlef/setup-beam@v1 + with: + otp-version: 26.2 + elixir-version: 1.15 - name: BAZEL RUN GAZELLE run: | bazel run gazelle diff --git a/.github/workflows/gazelle.yaml b/.github/workflows/gazelle.yaml index 6e5c5e1d6c3b..9740d757282d 100644 --- a/.github/workflows/gazelle.yaml +++ b/.github/workflows/gazelle.yaml @@ -9,13 +9,18 @@ on: jobs: bazel-run-gazelle: name: bazel run gazelle - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest timeout-minutes: 10 steps: - name: CHECKOUT REPOSITORY uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.target_branch }} + - name: Configure Erlang + uses: erlef/setup-beam@v1 + with: + otp-version: 26.2 + elixir-version: 1.15 - name: BAZEL RUN GAZELLE run: | bazel run gazelle