fix(prd-1): skip actor check on Forgejo + replace setup-bun with curl install
- Skip checkHumanActor on Forgejo (no bot accounts, avoids read:user scope) - Replace oven-sh/setup-bun action with curl install in action.yml (Forgejo runner pre-fetches all uses: refs even when if: skips them) - Mirror oven-sh/setup-bun created at xternal/setup-bun for future use Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
ead98f44f9
commit
f93e8a10d0
1 file changed
+5
-8
+5
-8
@@ -182,15 +182,12 @@ runs:
|
|||||||
echo "platform=${DETECTED}" >> "$GITHUB_OUTPUT"
|
echo "platform=${DETECTED}" >> "$GITHUB_OUTPUT"
|
||||||
echo "Detected platform: ${DETECTED}"
|
echo "Detected platform: ${DETECTED}"
|
||||||
|
|
||||||
|
# NOTE: upstream uses oven-sh/setup-bun here, but Forgejo runners
|
||||||
|
# pre-fetch all `uses:` refs even when `if:` would skip them, causing
|
||||||
|
# failures. The curl install works on both platforms and avoids the
|
||||||
|
# external action dependency. When merging upstream, keep this block.
|
||||||
- name: Install Bun
|
- name: Install Bun
|
||||||
if: inputs.path_to_bun_executable == '' && steps.detect-platform.outputs.platform != 'forgejo'
|
if: inputs.path_to_bun_executable == ''
|
||||||
uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # https://github.com/oven-sh/setup-bun/releases/tag/v2.1.2
|
|
||||||
with:
|
|
||||||
bun-version: 1.3.6
|
|
||||||
token: ${{ inputs.github_token || github.token }}
|
|
||||||
|
|
||||||
- name: Install Bun (Forgejo)
|
|
||||||
if: inputs.path_to_bun_executable == '' && steps.detect-platform.outputs.platform == 'forgejo'
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if command -v bun &> /dev/null; then
|
if command -v bun &> /dev/null; then
|
||||||
|
|||||||
Reference in new issue
Block a user