|
@@ -16,8 +16,8 @@ on:
|
|
|
# - cron: 30 18 * * *
|
|
|
workflow_dispatch:
|
|
|
inputs:
|
|
|
- version:
|
|
|
- description: 'Version'
|
|
|
+ param:
|
|
|
+ description: 'parameter'
|
|
|
required: false
|
|
|
default: ''
|
|
|
|
|
@@ -32,6 +32,13 @@ jobs:
|
|
|
- name: Checkout
|
|
|
uses: actions/checkout@main
|
|
|
|
|
|
+ - name: cancel running workflows
|
|
|
+ uses: styfle/cancel-workflow-action@main
|
|
|
+ if: contains(${{ github.event.inputs.version }}, 'cw')
|
|
|
+ with:
|
|
|
+ workflow_id: 4439867
|
|
|
+ access_token: ${{ github.token }}
|
|
|
+
|
|
|
- name: Load Settings.ini
|
|
|
run: |
|
|
|
source "${GITHUB_WORKSPACE}/devices/common/settings.ini"
|
|
@@ -48,60 +55,60 @@ jobs:
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "x86_64 ${{ github.event.inputs.version }}", "client_payload": {"target": "x86_64"}}'
|
|
|
+ -d '{"event_type": "x86_64", "client_payload": {"target": "x86_64"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "rockchip_armv8 ${{ github.event.inputs.version }}", "client_payload": {"target": "rockchip_armv8"}}'
|
|
|
+ -d '{"event_type": "rockchip_armv8", "client_payload": {"target": "rockchip_armv8"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "bcm27xx_bcm2711 ${{ github.event.inputs.version }}", "client_payload": {"target": "bcm27xx_bcm2711"}}'
|
|
|
+ -d '{"event_type": "bcm27xx_bcm2711", "client_payload": {"target": "bcm27xx_bcm2711"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "bcm27xx_bcm2710 ${{ github.event.inputs.version }}", "client_payload": {"target": "bcm27xx_bcm2710"}}'
|
|
|
+ -d '{"event_type": "bcm27xx_bcm2710", "client_payload": {"target": "bcm27xx_bcm2710"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "bcm27xx_bcm2709 ${{ github.event.inputs.version }}", "client_payload": {"target": "bcm27xx_bcm2709"}}'
|
|
|
+ -d '{"event_type": "bcm27xx_bcm2709", "client_payload": {"target": "bcm27xx_bcm2709"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "armvirt_64 ${{ github.event.inputs.version }}", "client_payload": {"target": "armvirt_64"}}'
|
|
|
+ -d '{"event_type": "armvirt_64", "client_payload": {"target": "armvirt_64"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "mediatek_mt7622 ${{ github.event.inputs.version }}", "client_payload": {"target": "mediatek_mt7622"}}'
|
|
|
+ -d '{"event_type": "mediatek_mt7622", "client_payload": {"target": "mediatek_mt7622"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "ramips_mt7621 ${{ github.event.inputs.version }}", "client_payload": {"target": "ramips_mt7621"}}'
|
|
|
+ -d '{"event_type": "ramips_mt7621", "client_payload": {"target": "ramips_mt7621"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "ramips_mt76x8 ${{ github.event.inputs.version }}", "client_payload": {"target": "ramips_mt76x8"}}'
|
|
|
+ -d '{"event_type": "ramips_mt76x8", "client_payload": {"target": "ramips_mt76x8"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "ipq807x ${{ github.event.inputs.version }}", "client_payload": {"target": "ipq807x"}}'
|
|
|
+ -d '{"event_type": "ipq807x", "client_payload": {"target": "ipq807x"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "ipq40xx_generic ${{ github.event.inputs.version }}", "client_payload": {"target": "ipq40xx_generic"}}'
|
|
|
+ -d '{"event_type": "ipq40xx_generic", "client_payload": {"target": "ipq40xx_generic"}}'
|
|
|
curl \
|
|
|
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
|
- -d '{"event_type": "bcm53xx ${{ github.event.inputs.version }}", "client_payload": {"target": "bcm53xx"}}'
|
|
|
+ -d '{"event_type": "bcm53xx", "client_payload": {"target": "bcm53xx"}}'
|
|
|
|