Skip to content

Commit

Permalink
#359 Start nightlies on repository dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: Frédéric Vallée <[email protected]>
  • Loading branch information
Frédéric Vallée authored and gautierbureau committed Jul 21, 2023
1 parent a9666ab commit 025bb92
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down

0 comments on commit 025bb92

Please sign in to comment.