Skip to content

Commit

Permalink
chore: GitHub Actions config fixes (#10768)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Mar 12, 2024
1 parent 95dd145 commit 9f57fc1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/dailly-generate-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ on:
jobs:
generate-updates:
if: ${{ github.repository == 'googleapis/elixir-google-api' }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
APPROVAL_GITHUB_TOKEN: ${{secrets.YOSHI_APPROVER_TOKEN}}
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.3"
- name: Install Elixir
uses: erlef/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
otp-version: "23.3.4.10"
elixir-version: "1.12.3"
otp-version: "23.3.4.19"
elixir-version: "1.12.3-otp-23"
version-type: strict
- name: Install tools
run: "gem install --no-document toys"
- name: execute
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/generate-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ on:
jobs:
generate-updates:
if: ${{ github.repository == 'googleapis/elixir-google-api' }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
APPROVAL_GITHUB_TOKEN: ${{secrets.YOSHI_APPROVER_TOKEN}}
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.3"
- name: Install Elixir
uses: erlef/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
otp-version: "23.3.4.10"
elixir-version: "1.12.3"
otp-version: "23.3.4.19"
elixir-version: "1.12.3-otp-23"
version-type: strict
- name: Install tools
run: "gem install --no-document toys"
- name: execute
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,23 @@ jobs:
strategy:
matrix:
include:
- elixir: "1.7.4"
otp: "22.3.4.24"
- elixir: "1.12.3"
otp: "23.3.4.10"
- elixir: "1.13.1"
- elixir: "1.7.4-otp-22"
otp: "22.3.4.26"
- elixir: "1.12.3-otp-23"
otp: "23.3.4.19"
- elixir: "1.13.4-otp-24"
otp: "24.1.7"
fail-fast: false
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Elixir ${{ matrix.elixir }} on OTP ${{ matrix.otp }}
uses: erlef/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
otp-version: "${{ matrix.otp }}"
elixir-version: "${{ matrix.elixir }}"
version-type: strict
- name: Run presubmits
run: mix do deps.get, presubmit --pr ${{ github.event.pull_request.number }}
required-checks:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/update-api-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ on:
jobs:
update-api-list:
if: ${{ github.repository_owner == 'googleapis' }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Elixir
uses: actions/setup-elixir@v1
uses: actions/setup-beam@v1
with:
otp-version: "23.0.3"
elixir-version: "1.10.4"
otp-version: "23.3.4.19"
elixir-version: "1.12.3-otp-23"
version-type: strict
- name: Compile
run: |
mix do deps.get, compile
Expand Down

0 comments on commit 9f57fc1

Please sign in to comment.