You've already forked helm-gitea
fix(ci): update changelog workflow
Some checks failed
Run Helm tests / Execute helm template (push) Successful in 9s
Run Helm tests / Execute helm lint (push) Successful in 16s
Run Helm tests / Execute helm unittest (push) Successful in 25s
Markdown linter / Execute npm run readme:lint (push) Successful in 7s
Markdown linter / Execute npm run readme:link (push) Successful in 34s
Markdown linter / Execute npm run readme:parameters (push) Successful in 9s
generate-chart / release-gitea (push) Has been cancelled
generate-chart / generate-chart-publish (push) Has been cancelled
Some checks failed
Run Helm tests / Execute helm template (push) Successful in 9s
Run Helm tests / Execute helm lint (push) Successful in 16s
Run Helm tests / Execute helm unittest (push) Successful in 25s
Markdown linter / Execute npm run readme:lint (push) Successful in 7s
Markdown linter / Execute npm run readme:link (push) Successful in 34s
Markdown linter / Execute npm run readme:parameters (push) Successful in 9s
generate-chart / release-gitea (push) Has been cancelled
generate-chart / generate-chart-publish (push) Has been cancelled
This commit is contained in:
@@ -1,16 +1,15 @@
|
|||||||
name: changelog
|
name: Update changelog
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ "main" ]
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelog:
|
changelog:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: docker.io/thegeeklab/git-sv:2.0.5
|
container: docker.io/thegeeklab/git-sv:2.0.5
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: install tools
|
- name: Install packages via apt
|
||||||
run: |
|
run: |
|
||||||
apk add -q --update --no-cache nodejs curl jq sed
|
apk add -q --update --no-cache nodejs curl jq sed
|
||||||
- uses: actions/checkout@v5.0.0
|
- uses: actions/checkout@v5.0.0
|
||||||
@@ -20,13 +19,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git sv rn -o changelog.md
|
git sv rn -o changelog.md
|
||||||
export RELEASE_NOTES=$(cat changelog.md)
|
export RELEASE_NOTES=$(cat changelog.md)
|
||||||
export ISSUE_NUMBER=$(curl -s "https://gitea.com/api/v1/repos/gitea/helm-gitea/issues?state=open&q=Changelog%20for%20upcoming%20version" | jq '.[].number')
|
export ISSUE_NUMBER=$(curl -s "${GITHUB_SERVER_URL}/api/v1/repos/gitea/helm-gitea/issues?state=open&q=Changelog%20for%20upcoming%20version" | jq '.[].number')
|
||||||
|
|
||||||
echo $RELEASE_NOTES
|
echo $RELEASE_NOTES
|
||||||
JSON_DATA=$(echo "" | jq -Rs --arg title 'Changelog for upcoming version' --arg body "$(cat changelog.md)" '{title: $title, body: $body}')
|
JSON_DATA=$(echo "" | jq -Rs --arg title 'Changelog for upcoming version' --arg body "$(cat changelog.md)" '{title: $title, body: $body}')
|
||||||
|
|
||||||
if [ -z "$ISSUE_NUMBER" ]; then
|
if [ -z "$ISSUE_NUMBER" ]; then
|
||||||
curl -s -X POST "https://gitea.com/api/v1/repos/gitea/helm-gitea/issues" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
curl -s -X POST "${GITHUB_SERVER_URL}/api/v1/repos/gitea/helm-gitea/issues" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
||||||
else
|
else
|
||||||
curl -s -X PATCH "https://gitea.com/api/v1/repos/gitea/helm-gitea/issues/$ISSUE_NUMBER" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
curl -s -X PATCH "${GITHUB_SERVER_URL}/api/v1/repos/gitea/helm-gitea/issues/$ISSUE_NUMBER" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user