Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1083 spurious runs of workflow makeyml #1231

Merged
merged 3 commits into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: make
on:
release:
types: [published]
push:
branches:
- '**'
Expand All @@ -10,23 +11,32 @@ on:
- cron: '0 4 5,25 * *'

jobs:
choose-runner:
configure-workflow:
name: Configure workflow
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
runner: ${{ steps.choose-runner.outputs.runner }}
steps:
- id: skip_check
name: Configure skip-duplicate-actions
uses: fkirc/skip-duplicate-actions@v5
with:
paths_ignore: '["**/README.md"]' # FIXME
do_not_skip: '["workflow_dispatch", "schedule", "release"]'
- id: choose-runner
uses: QCDIS/chose-action-runner@v2
uses: QCDIS/choose-action-runner@v2
with:
preferred-runner: naavre
fallback-runner: ubuntu-latest
github-token: ${{ secrets.RUNNER_ACCESS_TOKEN }}

call-pytest:
needs: [choose-runner]
uses: ./.github/workflows/test-build wheel.yml
needs: [configure-workflow]
if: ${{ needs.configure-workflow.outputs.should_skip != 'true' }}
with:
runs-on: ${{ needs.choose-runner.outputs.runner }}
runs-on: ${{ needs.configure-workflow.outputs.runner }}
secrets:
jupyterhub_user: ${{ secrets.JUPYTERHUB_USER }}
vlab_slug: ${{ secrets.VLAB_SLUG }}
Expand All @@ -40,6 +50,7 @@ jobs:
naavre_api_token: ${{ secrets.NAAVRE_API_TOKEN }}
argo_url: ${{ secrets.ARGO_URL }}
argo_api_token: ${{ secrets.ARGO_API_TOKEN }}

call-build-container-vanilla:
needs: [call-pytest]
uses: ./.github/workflows/build-container.yml
Expand Down
Loading