From 025bb928fcbbf86602e99c94a0c8c887b20c48d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vall=C3=A9e?= Date: Thu, 20 Jul 2023 16:47:56 +0200 Subject: [PATCH] #359 Start nightlies on repository dispatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Vallée --- .github/workflows/nightly.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 5e3f088d..fe622296 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,8 +2,11 @@ name: Nightly on: workflow_dispatch: - schedule: - - cron: '0 1 * * 1-5' + repository_dispatch: + types: [nightly-linux] + +env: + DYNAWO_VERSION: 1.6.0 jobs: fedora: @@ -19,19 +22,13 @@ jobs: DYNAWO_BUILD_TYPE: ${{ matrix.build-type }} DYNAWO_NB_PROCESSORS_USED: 2 DYNAWO_FORCE_CXX11_ABI: "true" - DYNAWO_VERSION: 1.6.0 - GH_API_DYNAWO: ${{ github.api_url }}/repos/${{ github.repository_owner }}/dynawo - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CURL_JSON: 'curl --silent -H "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --header "Content-Type: application/json"' steps: - name: Checkout sources - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Fetch Dynawo - run: | - source .github/workflows/tools.sh - download_asset $GH_API_DYNAWO nightly Dynawo_omc_v${DYNAWO_VERSION}.zip $GITHUB_TOKEN + run: curl -LOs https://github.com/${{ github.repository_owner }}/dynawo/releases/download/nightly/Dynawo_omc_v$DYNAWO_VERSION.zip - name: Unzip Dynawo run: |