-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add workflow to check each commit
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |