From c552899fbb92ec6c284aea2c96a49a3df0810a87 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Sun, 27 Jul 2025 04:40:00 +0000 Subject: [PATCH] enable debugging on workflow_dispatch --- .github/workflows/labels.yml | 8 +++++++- .github/workflows/triageops.yml | 10 +++++++++- 2 file(s) changed, 16 insertion(s)(+), 2 deletion(s)(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -2,6 +2,12 @@ name: TriageOps - Labels Manager on: workflow_dispatch: + inputs: + dry-run: + description: 'Run the workflow in dry-run mode' + required: false + default: true + type: boolean push: branches: - 'main' @@ -39,5 +45,5 @@ continue-on-error: true with: github-token: ${{ steps.dotenvx.outputs.GITHUB_TOKEN }} yaml-file: .github/labels.yml - dry-run: ${{ github.event_name == 'pull_request' }} + dry-run: ${{ inputs.dry-run || github.event_name == 'pull_request' }} skip-delete: true # for now, we don't want to delete labels diff --git a/.github/workflows/triageops.yml b/.github/workflows/triageops.yml --- a/.github/workflows/triageops.yml +++ b/.github/workflows/triageops.yml @@ -9,6 +9,13 @@ issue_comment: types: [created] schedule: - cron: "0 7 * * *" + workflow_dispatch: + inputs: + dry-run: + description: 'Run the workflow in dry-run mode' + required: false + default: true + type: boolean # While these permissions for the GITHUB_TOKEN are unused due to us using our own # app token generated through actions/create-github-app-token, they are still required @@ -23,7 +30,7 @@ jobs: stale: name: Manage stale issues runs-on: ubuntu-latest - if: github.event_name == 'schedule' || (github.event_name == 'issues' && github.event.action != 'labeled') || (github.event_name == 'issue_comment' && github.event.action == 'created') + if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'issues' && github.event.action != 'labeled') || (github.event_name == 'issue_comment' && github.event.action == 'created') steps: - name: Download .env.ci from central repo run: wget -O .env.ci https://github.com/andreijiroh-dev/dotenvx-secretstore/raw/main/.env.ci @@ -42,6 +49,7 @@ - name: Close stale issues uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + debug-only: ${{ inputs.dry-run || github.event_name == 'pull_request' }} days-before-stale: 14 days-before-close: 7 stale-issue-label: 'stale' -- tangled.sh