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