-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ahmed AbouZaid <[email protected]>
- Loading branch information
Showing
6 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Chart - Release - Update Config" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/config/release-please/.release-please-manifest.json | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
RELEASE_PLEASE_CONFIG: ".github/config/release-please/release-please-config.json" | ||
|
||
jobs: | ||
# A workaround for https://github.com/googleapis/release-please/issues/2202 | ||
update-config: | ||
name: Update release-please config | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Get latest release commit | ||
run: | | ||
last_release_commit="$(git log -n1 --pretty=format:'%H' --grep='chore(release):')" | ||
cat "${RELEASE_PLEASE_CONFIG_FILE}" | | ||
jq --arg last_release_commit "${last_release_commit}" \ | ||
'."last-release-sha" = $last_release_commit' | tee "${RELEASE_PLEASE_CONFIG_FILE}" | ||
- name: Git pull | ||
run: git pull --rebase --autostash . | ||
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4 | ||
with: | ||
author_name: "distro-ci[bot]" | ||
author_email: "122795778+distro-ci[bot]@users.noreply.github.com" | ||
message: "chore(release): update release-please config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters