Skip to content

Commit

Permalink
Add branch name back
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fish committed Sep 9, 2024
1 parent e3c4753 commit 34159e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/generate_README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request:
paths:
- "docs/**/*"
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
make-README:
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
git add README.md
git update-index --refresh
if ! git diff-index --cached --quiet HEAD; then
echo "Committing changes to README.md"
echo "Committing changes to README.md to branch $BRANCH_NAME"
git commit -m "Automated update of README.md from docs"
git push origin
git push origin HEAD:$BRANCH_NAME
fi
6 changes: 4 additions & 2 deletions .github/workflows/generate_help_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
paths:
- "src/sim_recon/cli/parsing/*"
- "src/sim_recon/settings/formatting.py"
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
generate-help-docs:
Expand Down Expand Up @@ -46,7 +48,7 @@ jobs:
git add docs/*
git update-index --refresh
if ! git diff-index --cached --quiet HEAD; then
echo "Committing changes to help docs"
echo "Committing changes to help docs to branch $BRANCH_NAME"
git commit -m "Automated update of help docs"
git push origin
git push origin HEAD:$BRANCH_NAME
fi

0 comments on commit 34159e0

Please sign in to comment.