2024-07-21 19:05:08 +00:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types:
|
|
|
|
- edited
|
|
|
|
- synchronize
|
|
|
|
- labeled
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-notes:
|
2024-11-13 21:18:35 +00:00
|
|
|
if: ( vars.ROLE == 'forgejo-coding' ) && contains(github.event.pull_request.labels.*.name, 'worth a release-note')
|
2024-07-21 19:05:08 +00:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-08-12 14:11:35 +00:00
|
|
|
image: 'code.forgejo.org/oci/node:20-bookworm'
|
2024-07-21 19:05:08 +00:00
|
|
|
steps:
|
2024-09-30 13:08:26 +00:00
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
2024-07-21 19:05:08 +00:00
|
|
|
|
2024-07-24 15:54:48 +00:00
|
|
|
- name: event
|
|
|
|
run: |
|
|
|
|
cat <<'EOF'
|
|
|
|
${{ toJSON(github.event.pull_request.labels.*.name) }}
|
|
|
|
EOF
|
|
|
|
cat <<'EOF'
|
|
|
|
${{ toJSON(github.event) }}
|
|
|
|
EOF
|
|
|
|
|
2024-10-01 10:02:16 +00:00
|
|
|
- uses: https://code.forgejo.org/actions/setup-go@v5
|
2024-07-21 19:05:08 +00:00
|
|
|
with:
|
|
|
|
go-version-file: "go.mod"
|
2024-07-23 14:45:44 +00:00
|
|
|
cache: false
|
2024-07-21 19:05:08 +00:00
|
|
|
|
|
|
|
- name: apt install jq
|
|
|
|
run: |
|
2024-08-09 16:14:19 +00:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get update -qq
|
|
|
|
apt-get -q install -y -qq jq
|
2024-07-21 19:05:08 +00:00
|
|
|
|
|
|
|
- name: release-notes-assistant preview
|
|
|
|
run: |
|
2024-08-01 13:49:05 +00:00
|
|
|
go run code.forgejo.org/forgejo/release-notes-assistant@v1.1.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 }}
|