From b988a899c4954c86dc568b10e3c08808df0f9e77 Mon Sep 17 00:00:00 2001 From: Ariel Mendelzon Date: Wed, 8 Nov 2023 01:26:17 +1300 Subject: [PATCH] Periodic workflow run test --- .github/workflows/lint-c.yml | 11 ++++++++++- .github/workflows/periodic.yml | 11 +++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/periodic.yml diff --git a/.github/workflows/lint-c.yml b/.github/workflows/lint-c.yml index 3f6aec5c..5efddf58 100644 --- a/.github/workflows/lint-c.yml +++ b/.github/workflows/lint-c.yml @@ -1,6 +1,13 @@ name: Lint C code -on: [push] +on: + push: + workflow_call: + inputs: + branch: + description: "The branch on which to run this workflow" + required: true + type: string jobs: run-c-linter: @@ -10,6 +17,8 @@ jobs: steps: - name: Checkout this repo uses: actions/checkout@v3 + with: + ref: ${{ inputs.branch }} - name: Build the ledger docker image run: docker/ledger/build diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml new file mode 100644 index 00000000..f18eef95 --- /dev/null +++ b/.github/workflows/periodic.yml @@ -0,0 +1,11 @@ +name: Periodic workflow run + +on: [push] + +jobs: + call-run-c-linter-on-master: + uses: ./.github/workflows/lint-c.yml + with: + branch: develop-2.3 + +