From f59cba6c52b329f95ca7c6529d5c2bb17d5130f4 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 15 Aug 2024 12:18:01 -0400 Subject: [PATCH] ci: add workflow_dispatch triggers (#55) Add a workflow_dispatch trigger to both workflows, allowing manual runs from the UI or CLI. --- .github/workflows/full-dist-test.yml | 3 +++ .github/workflows/nightly-build.yml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/full-dist-test.yml b/.github/workflows/full-dist-test.yml index 6dbc7e2..cac8fb4 100644 --- a/.github/workflows/full-dist-test.yml +++ b/.github/workflows/full-dist-test.yml @@ -14,6 +14,9 @@ on: - master paths-ignore: - '**.md' + # workflow_dispatch trigger to start release via GitHub UI or CLI, + # see https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow + workflow_dispatch: jobs: get_version: name: Get current version diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index ac1d8bd..a0810b6 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -30,6 +30,9 @@ on: # if the merge-triggered CI fails or by CI on open PRs. repository_dispatch: types: [build] + # workflow_dispatch trigger to start release via GitHub UI or CLI, + # see https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow + workflow_dispatch: jobs: get_version: name: Get current version @@ -89,7 +92,7 @@ jobs: run: shell: bash # don't create a release post if triggering event is pull request - if: github.event_name == 'push' || github.event_name == 'schedule' + if: github.event_name != 'pull_request' steps: - name: Delete Older Releases