Skip to content

Build all target

Build all target #4

Workflow file for this run

name: Build all target
on:
workflow_dispatch:
inputs:
openwrt_tag:
type: string
jobs:
setup:
name: Setup
runs-on: self-hosted
outputs:
targets: ${{ steps.find_targets.outputs.targets }}
targets_subtargets: ${{ steps.find_targets.outputs.targets_subtargets }}
openwrt_tag: ${{ steps.set_env.outputs.openwrt_tag }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env
id: set_env
run: |
openwrt_tag=${{ inputs.openwrt_tag }}
if [ -z "${openwrt_tag}" ];then
openwrt_tag = $(curl -sL https://github.com/openwrt/openwrt | sed -n 's/.*\/openwrt\/openwrt\/releases\/tag\/\(.*\)">/\1/p')
fi
echo "openwrt_tag=${openwrt_tag}" >> "$GITHUB_OUTPUT"
- name: Set targets
id: find_targets
run: python3 -B ./.github/workflows/scripts/get_targets.py | while read v;do echo "$v" >> "$GITHUB_OUTPUT"; done
build:

Check failure on line 32 in .github/workflows/build-all.yml

View workflow run for this annotation

GitHub Actions / Build all target

Invalid workflow file

The workflow is not valid. .github/workflows/build-all.yml (Line: 32, Col: 3): Error calling workflow 'czy21/openwrt-plugin/.github/workflows/build.yml@05fc75b0115f092e04c8969ae520122b53d756fe'. The workflow is requesting 'contents: write', but is only allowed 'contents: read'.
name: Build target
needs: setup
strategy:
fail-fast: false
matrix:
include: ${{fromJson(needs.setup.outputs.targets_subtargets)}}
uses: ./.github/workflows/build.yml
with:
target: ${{ matrix.target }}
subtarget: ${{ matrix.subtarget }}
output_image_type: ${{ matrix.output_image_type }}
openwrt_tag: ${{ needs.steup.outputs.openwrt_tag }}