2024-07-22 00:35:08 +05:30
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- reopened
|
|
|
|
- edited
|
|
|
|
- synchronize
|
|
|
|
- labeled
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-notes:
|
|
|
|
if: ${{ !startsWith(vars.ROLE, 'forgejo-') && contains(github.event.pull_request.labels.*.name, 'worth a release-note') }}
|
|
|
|
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"
|
2024-07-23 20:15:44 +05:30
|
|
|
cache: false
|
2024-07-22 00:35:08 +05:30
|
|
|
|
|
|
|
- name: apt install jq
|
|
|
|
run: |
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get update -qq
|
|
|
|
apt-get -q install -y -qq jq
|
|
|
|
|
|
|
|
- name: release-notes-assistant preview
|
|
|
|
run: |
|
2024-07-24 03:37:53 +05:30
|
|
|
go run code.forgejo.org/forgejo/release-notes-assistant@v1.0.2 --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 }}
|