Skip to content

Commit

Permalink
fix: workflows for yarn4 & node.js 20(#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurFlag authored Feb 20, 2024
1 parent f41a8a9 commit b69ea68
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/create-index-algolia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@ name: Update global Aiven index
on:
schedule:
- cron: '0 6 * * 2' # Runs at 06:00 UTC every Tuesday
workflow_dispatch: # Allows manual triggering of the workflow
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install Node.js dependencies
run: yarn

node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build Docusaurus site
run: yarn build

- name: Index docs output
run: node scripts/create_index_algolia.js
env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/update-adv-params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'
- name: Install project dependencies
run: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Parse service file
run: make service-type-config-${{ inputs.service-name }}
- name: Create pull request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
commit-message: (${{ inputs.service-name }}) Update advanced parameters
committer: GitHub <noreply@github.com>
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/update-cloud-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'
- name: Install project dependencies
run: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Update available cloud list
run: make cloud-list
- name: Create pull request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
commit-message: Cloud - Update available list
committer: GitHub <noreply@github.com>
Expand Down

0 comments on commit b69ea68

Please sign in to comment.