1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 02:37:11 +00:00

scripts/update-gh-pages: sync OWNERS from master to gh-pages

The gh-pages branch is normally automatically managed by the GitHub
workflow. However, on really rare occasions there may beed to contribute
something manually via a PR. Thus, this patch updates the
update-gh-pages script to sync the OWNERS from master the gh-pages
branch branch, to enable the usual prow-based workflow for PRs in
gh-pages branch.
This commit is contained in:
Markus Lehtonen 2023-09-11 16:14:20 +03:00
parent b7aa0b2273
commit f5084cb19d

View file

@ -181,6 +181,11 @@ else
commit_hash=`git describe --tags --dirty --always`
fi
# Sync OWNERS file from master branch
if [ "$GITHUB_REF" = "refs/heads/master" ]; then
cp OWNERS "$build_dir"/OWNERS
fi
# Switch to work in the gh-pages worktree
pushd "$build_dir" > /dev/null