fix(ci): Use GH_PUBLIC_RO env var in sccache action

Consistent with setup-rust action, prioritise GH_PUBLIC_RO environment
variable over token input to ensure reliable sccache downloads.
This commit is contained in:
Tom Foster 2025-09-06 20:17:25 +01:00
commit e88c31ea05

View file

@ -13,7 +13,7 @@ runs:
- name: Install sccache - name: Install sccache
uses: https://github.com/mozilla-actions/sccache-action@v0.0.9 uses: https://github.com/mozilla-actions/sccache-action@v0.0.9
with: with:
token: ${{ inputs.token }} token: ${{ env.GH_PUBLIC_RO || inputs.token }}
- name: Configure sccache - name: Configure sccache
uses: https://github.com/actions/github-script@v7 uses: https://github.com/actions/github-script@v7
with: with: