Skip to content

Commit

Permalink
ci: use a variable for the version
Browse files Browse the repository at this point in the history
[changelog skip]
  • Loading branch information
williamdes committed Aug 10, 2024
1 parent 970ca7d commit 7c91c6e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Run sudo-bot to update files
permissions:
contents: read

env:
VERSION: 1.3.1-rc1

on:
repository_dispatch:
types: run-cron
Expand Down Expand Up @@ -40,17 +43,17 @@ jobs:
id: cache-mariadb-mysql-kbs
with:
path: ~/.cargo/bin/mariadb-mysql-kbs
key: ${{ runner.os }}-cargo-bin-mariadb-mysql-kbs-1.3.1-rc1
key: ${{ runner.os }}-cargo-bin-mariadb-mysql-kbs-${{ env.VERSION }}
- name: Set up toolchain
if: steps.cache-mariadb-mysql-kbs.outputs.cache-hit != 'true'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.74
override: true
- name: Install mariadb-mysql-kbs
- name: Install mariadb-mysql-kbs (${{ env.VERSION }})
if: steps.cache-mariadb-mysql-kbs.outputs.cache-hit != 'true'
run: cargo install mariadb-mysql-kbs@1.3.0-rc5
run: cargo install mariadb-mysql-kbs@${{ env.VERSION }}
- name: Install
run: |
yarn install
Expand Down

0 comments on commit 7c91c6e

Please sign in to comment.