Skip to content

Commit

Permalink
ci: Add workflow to check each commit
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jan 2, 2025
1 parent 12f0694 commit af824ac
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/each.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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
# Get name of main branch of repository
# origin/HEAD isn't known here
main=$(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5)
commits=$(git log --pretty=format:"%H" ${main}..HEAD --)
echo $commits
shell: bash

0 comments on commit af824ac

Please sign in to comment.