From 4b0c65e9ef6197b92ae41759b95e1bfd855b3193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Thu, 2 Jan 2025 11:25:02 +0100 Subject: [PATCH] ci: Add workflow to check each commit --- .github/workflows/each.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/each.yaml diff --git a/.github/workflows/each.yaml b/.github/workflows/each.yaml new file mode 100644 index 0000000000..ad9a4d9756 --- /dev/null +++ b/.github/workflows/each.yaml @@ -0,0 +1,35 @@ +# Helper workflow to trigger rcc for each commit on a branch + +on: + push: + branches: + - each-* + +name: rcc + +jobs: + rcc-smoke: + runs-on: ubuntu-24.04 + outputs: + sha: ${{ steps.commit.outputs.sha }} + versions-matrix: ${{ steps.versions-matrix.outputs.matrix }} + dep-suggests-matrix: ${{ steps.dep-suggests-matrix.outputs.matrix }} + + name: "Trigger rcc workflow for each commit" + + # Begin custom: services + # End custom: services + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.ref }} + fetch-depth: 0 + + - name: Enumerate all commits from the repository's main branch + run: | + git remote -v + git fetch --all + commits=$(git log --pretty=format:"%H" origin/HEAD.. --) + echo $commits + shell: bash