mirror of
https://github.com/immich-app/devtools.git
synced 2026-09-30 21:27:48 +08:00
fix!: properly pass github_token in use-mise (#1568)
* test-use-mise * fix!: properly pass github_token in use-mise
This commit is contained in:
@@ -58,11 +58,18 @@ jobs:
|
||||
- name: Use Mise
|
||||
uses: ./actions/use-mise
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
github_token: ${{ github.token }}
|
||||
|
||||
- name: Verify github_token was forwarded to mise-action
|
||||
run: |
|
||||
if [ -z "${MISE_GITHUB_TOKEN:-}" ]; then
|
||||
echo "::error::MISE_GITHUB_TOKEN is unset — use-mise did not forward github_token to jdx/mise-action"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Verify mise version matches pinned version
|
||||
run: |
|
||||
expected=$(yq '.runs.steps[0].with.version' actions/use-mise/action.yml)
|
||||
expected=$(yq '(.runs.steps[] | select(.uses | test("^jdx/mise-action"))).with.version' actions/use-mise/action.yml)
|
||||
actual=$(mise --version | awk '{print $1}')
|
||||
echo "Expected: $expected"
|
||||
echo "Actual: $actual"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: 'Use Mise'
|
||||
description: 'Use Mise with a pinned version'
|
||||
inputs:
|
||||
github-token:
|
||||
github_token:
|
||||
description: 'Github token to use'
|
||||
required: true
|
||||
working_directory:
|
||||
@@ -12,7 +12,7 @@ runs:
|
||||
steps:
|
||||
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
|
||||
with:
|
||||
github_token: ${{ inputs.GITHUB_TOKEN }}
|
||||
github_token: ${{ inputs.github_token }}
|
||||
working_directory: ${{ inputs.working_directory }}
|
||||
version: 2026.3.13
|
||||
sha256: ${{ runner.os == 'Linux' && runner.arch == 'X64' && '806790b4a71c93d20e027c40ddf38470fa6e26555275b1181a3c2ccc082ef56f' ||
|
||||
|
||||
Reference in New Issue
Block a user