Skip to content

Commit

Permalink
Refresh settings
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha committed Jul 16, 2024
1 parent fdbb459 commit ac8d905
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions migrate/lib/github-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ function install_github_settings() {
sed -i '' '/# Upstream changes/d' $settings
yq -ei '(._extends | key) head_comment="Upstream changes from _extends are only recognized when modifications are made to this file in the default branch."' $settings

## Trigger settings update
echo "" >> .github/settings.yml

git add $settings
}

function refresh_github_settings() {
info "Touch GitHub settings"
local settings=".github/settings.yml"

mkdir -p $(dirname $settings)
touch $settings
git commit --allow-empty -m "chore: refresh .github/settings.yml" $settings
}
2 changes: 1 addition & 1 deletion migrate/migrations/20240704/script.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title "Update `.github/settings.yml`"

install_github_settings
refresh_github_settings
remove .github/auto-release.yml

# Merge the PR
Expand Down

0 comments on commit ac8d905

Please sign in to comment.