From e8a315555d86a8b5527c9f036173905017ef48e5 Mon Sep 17 00:00:00 2001 From: Orso Meneghini Date: Tue, 7 Mar 2023 14:30:15 -0800 Subject: [PATCH] daily_manifest GH action --- ...umentation.yml => daily_documentation.yml} | 9 ++- .github/workflows/daily_example.yml | 5 ++ .github/workflows/daily_manifest.yml | 61 +++++++++++++++++++ .github/workflows/runtests.yml | 1 - 4 files changed, 73 insertions(+), 3 deletions(-) rename .github/workflows/{documentation.yml => daily_documentation.yml} (92%) create mode 100644 .github/workflows/daily_manifest.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/daily_documentation.yml similarity index 92% rename from .github/workflows/documentation.yml rename to .github/workflows/daily_documentation.yml index 2598da4af..c9a527a4b 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/daily_documentation.yml @@ -1,8 +1,8 @@ -name: documentation +name: daily_documentation on: schedule: - - cron: '0 0 * * *' + - cron: '0 2 * * *' workflow_dispatch: inputs: debug: @@ -10,6 +10,11 @@ on: required: false default: false +env: + PTP_READ_TOKEN: ${{ secrets.PTP_READ_TOKEN }} + + + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true diff --git a/.github/workflows/daily_example.yml b/.github/workflows/daily_example.yml index ebee3039e..ccd780689 100644 --- a/.github/workflows/daily_example.yml +++ b/.github/workflows/daily_example.yml @@ -10,6 +10,11 @@ on: required: false default: false +env: + PTP_READ_TOKEN: ${{ secrets.PTP_READ_TOKEN }} + + + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true diff --git a/.github/workflows/daily_manifest.yml b/.github/workflows/daily_manifest.yml new file mode 100644 index 000000000..7cca28ce3 --- /dev/null +++ b/.github/workflows/daily_manifest.yml @@ -0,0 +1,61 @@ +name: daily_manifest + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + inputs: + debug: + type: boolean + required: false + default: false + +env: + PTP_READ_TOKEN: ${{ secrets.PTP_READ_TOKEN }} + + + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - "1.x" + os: + - ubuntu-latest + arch: + - x64 + steps: + - uses: actions/checkout@v2 + #============ + - name: Check if fuse bot commit + run: | + author=$(git log -1 --pretty=format:'%an') + if [ "$author" = "fuse bot" ]; then + echo "Skipping action due to commit made by 'fuse bot'." + exit 78 + fi + #============ + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + show-versioninfo: true + - uses: julia-actions/cache@v1 + - run: make install_ci + - uses: julia-actions/julia-buildpkg@v1 + #============ + - uses: julia-actions/julia-runtest@v1 + - run: make manifest_ci_commit + #============ + - name: Debug with tmate if failure + manual triggrer + debug mode + if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug }} + uses: mxschmitt/action-tmate@v3 + timeout-minutes: 60 diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index 75bb72a0c..8342f82ca 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -32,7 +32,6 @@ jobs: - ubuntu-latest arch: - x64 - steps: - uses: actions/checkout@v2 #============