-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'fix(release-notes-assistant): categorize multilin…
…e drafts & cleanup & update milestones' (#4779) from earl-warren/forgejo:wip-rna-preview into forgejo Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4779 Reviewed-by: 0ko <[email protected]>
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: '@daily' | ||
|
||
jobs: | ||
release-notes: | ||
if: ${{ !startsWith(vars.ROLE, 'forgejo-') | ||
runs-on: docker | ||
container: | ||
image: 'docker.io/node:20-bookworm' | ||
steps: | ||
- uses: https://code.forgejo.org/actions/checkout@v3 | ||
|
||
- uses: https://code.forgejo.org/actions/setup-go@v4 | ||
with: | ||
go-version-file: "go.mod" | ||
cache: false | ||
|
||
- name: apt install jq | ||
run: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
apt-get update -qq | ||
apt-get -q install -y -qq jq | ||
- name: update open milestones | ||
run: | | ||
set -x | ||
curl -sS $GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/milestones?state=open | jq -r '.[] | .title' | while read forgejo version ; do | ||
milestone="$forgejo $version" | ||
go run code.forgejo.org/forgejo/[email protected] --config .release-notes-assistant.yaml --storage milestone --storage-location "$milestone" --forgejo-url $GITHUB_SERVER_URL --repository $GITHUB_REPOSITORY --token ${{ secrets.RELEASE_NOTES_ASSISTANT_TOKEN }} release $version | ||
done |
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 |
---|---|---|
|
@@ -36,4 +36,4 @@ jobs: | |
- name: release-notes-assistant preview | ||
run: | | ||
go run code.forgejo.org/forgejo/[email protected].0 --config .release-notes-assistant.yaml --storage pr --storage-location ${{ github.event.pull_request.number }} --forgejo-url $GITHUB_SERVER_URL --repository $GITHUB_REPOSITORY --token ${{ secrets.RELEASE_NOTES_ASSISTANT_TOKEN }} preview ${{ github.event.pull_request.number }} | ||
go run code.forgejo.org/forgejo/[email protected].1 --config .release-notes-assistant.yaml --storage pr --storage-location ${{ github.event.pull_request.number }} --forgejo-url $GITHUB_SERVER_URL --repository $GITHUB_REPOSITORY --token ${{ secrets.RELEASE_NOTES_ASSISTANT_TOKEN }} preview ${{ github.event.pull_request.number }} |
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