Skip to content

Commit

Permalink
Update upmerge workflow to ignore config and body-end changes (#1267)
Browse files Browse the repository at this point in the history
* update upmerge

Signed-off-by: sk593 <[email protected]>

* readd signoff

Signed-off-by: sk593 <[email protected]>

---------

Signed-off-by: sk593 <[email protected]>
  • Loading branch information
sk593 authored Nov 7, 2024
1 parent e4d1c80 commit d425e1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/upmerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ jobs:
export SOURCE_BRANCH=$(basename ${{ github.ref }})
echo "Upmerging docs from $SOURCE_BRANCH to edge"
git fetch origin $SOURCE_BRANCH
git merge -m "Upmerge to edge" origin/$SOURCE_BRANCH
git merge --no-commit origin/$SOURCE_BRANCH
git checkout edge -- docs/config.toml docs/layouts/partials/hooks/body-end.html
git commit -m "Upmerge to edge"
if git diff --quiet edge; then
echo "No changes to merge from $SOURCE_BRANCH to edge"
echo "NO_CHANGES=true" >> $GITHUB_ENV
else
echo "Pushing $BRANCH_NAME for PR to edge"
git reset HEAD docs/config.toml docs/layouts/partials/hooks/body-end.html
git push --set-upstream origin $BRANCH_NAME
fi
Expand Down

0 comments on commit d425e1d

Please sign in to comment.