From 647d5c8a33a97375681c9fb214c763aa670bb117 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 28 Sep 2021 16:30:32 +0200 Subject: [PATCH] workflow: trigger testing workflow for new releases (#385) Signed-off-by: Max Brenner --- .github/workflows/build-dev.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index c9f126230..59a8bbc2c 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -61,3 +61,16 @@ jobs: [ -f openwrt/tmp/image-file ] && aws s3 cp --acl public-read --content-type "application/octet-stream" "openwrt/$(cat openwrt/tmp/image-file)" "s3://$AWS_S3_BUCKET_NAME/$IMG_NAME" [ -f openwrt/tmp/image-file ] && aws s3 cp --acl public-read --content-type "application/json" "latest-upgrade.json" "s3://$AWS_S3_BUCKET_NAME/$JSON_NAME" + + trigger-testing: + runs-on: ubuntu-latest + needs: build + if: startsWith(github.ref, 'refs/tags/v') + steps: + - name: Trigger testing of release + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.WLAN_TESTING_PAT }} + repository: Telecominfraproject/wlan-testing + event-type: new-ap-release + client-payload: '{"ref": "${GITHUB_REF#refs/tags/}", "sha": "${{ github.sha }}"}'