From e7ce0a2b59030b81c7cf5a5d495a8c286113a228 Mon Sep 17 00:00:00 2001 From: Kevin Netherton Date: Tue, 10 Oct 2023 17:48:20 -0700 Subject: [PATCH] fix: syntax error on build actions --- .github/workflows/pr-close.yaml | 11 +++++---- .github/workflows/pr-open-r.yaml | 42 ++++++++++++++++---------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/.github/workflows/pr-close.yaml b/.github/workflows/pr-close.yaml index 8075208..c39cc54 100644 --- a/.github/workflows/pr-close.yaml +++ b/.github/workflows/pr-close.yaml @@ -1,11 +1,12 @@ name: Pull Request Closed # disable this action as going to run stuff as gha -# on: -# pull_request: -# types: -# - closed -# workflow_dispatch: +on: + pull_request: + branches: ['branch_that_doesnt_exist'] + types: + - closed + workflow_dispatch: jobs: # cleanup should run even if the pr is not merged. diff --git a/.github/workflows/pr-open-r.yaml b/.github/workflows/pr-open-r.yaml index 8abeb5e..32ce4cd 100644 --- a/.github/workflows/pr-open-r.yaml +++ b/.github/workflows/pr-open-r.yaml @@ -9,27 +9,27 @@ on: # disable the build as its not required anymore... Jobs are going to run as - # gha. - # pull_request: - # # debug: remove the dev,putting build action on non existent branches for debug - # branches: ['main'] - # types: ['opened', 'reopened', 'edited', 'synchronize'] - # paths-ignore: - # - .vscode/** - # - .flake8 - # - .lintr - # - .RData - # - .Rhistory - # - .Rprofile - # - .gitignore - # - LICENSE - # - readme.md - # - code_of_conduct.md - # - .flake8 - # - COMPLIANCE.yaml - # - docs/** - # - renv.lock - # workflow_dispatch: + # gha. Disabling by setting to run on a non existent branch + pull_request: + # debug: remove the dev,putting build action on non existent branches for debug + branches: ['branch_that_doesnt_exist'] + types: ['opened', 'reopened', 'edited', 'synchronize'] + paths-ignore: + - .vscode/** + - .flake8 + - .lintr + - .RData + - .Rhistory + - .Rprofile + - .gitignore + - LICENSE + - readme.md + - code_of_conduct.md + - .flake8 + - COMPLIANCE.yaml + - docs/** + - renv.lock + workflow_dispatch: jobs: # calculate the image tag / used to tag image and then for the