Skip to content

Commit eb4f5ff

Browse files
authored
Reference the latest commit via hash
1 parent 256d7ba commit eb4f5ff

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/contributors.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
outputs:
1515
modified: ${{steps.check.outputs.modified}}
16+
hash: ${{steps.push.outputs.hash}}
1617
steps:
1718
- uses: fkirc/skip-duplicate-actions@v5
1819
with:
@@ -28,12 +29,16 @@ jobs:
2829
id: check
2930
run: echo "modified=$(git diff --quiet HEAD -- docs/contributors.md && echo false || echo true)" >> "$GITHUB_OUTPUT"
3031
- name: Push to GitHub
32+
id: push
3133
if: steps.check.outputs.modified == 'true'
3234
run: |
3335
git -c "user.name=GitHub Actions" -c "user.email=" commit -am "Update contributors"
36+
echo "hash=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
3437
git push
3538
3639
gh-pages:
3740
needs: update
3841
if: needs.update.outputs.modified == 'true'
3942
uses: ./.github/workflows/gh-pages.yml
43+
with:
44+
hash: ${{needs.update.outputs.hash}}

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
- docs/**
99
- mkdocs.yml
1010
workflow_call:
11+
inputs:
12+
hash:
13+
description: 'Commit hash to fetch from'
14+
required: false
15+
default: ''
16+
type: string
1117
workflow_dispatch:
1218

1319
jobs:
@@ -19,6 +25,7 @@ jobs:
1925
cancel_others: 'true'
2026
- uses: actions/checkout@v4
2127
with:
28+
ref: ${{inputs.hash}}
2229
fetch-depth: 0 # for the 'Last updated' timestamp
2330
- name: Install requirements
2431
run: pip install -r requirements.txt

docs/contributors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is a list of people who contributed to the roboticslab-uc3m software ecosys
1818
- avegasanchez
1919
- Bartek Łukawski (PeterBowman)
2020
- beaelp
21-
- Borja Pérez (Borailuce99)
21+
- Borailuce99
2222
- Carlos Llamas (cllamasmar)
2323
- Cristina Arenas Izquierdo (crisarenas)
2424
- DanielSRSH

0 commit comments

Comments
 (0)