diff options
author | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-11-18 18:02:59 +0100 |
---|---|---|
committer | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-11-18 18:02:59 +0100 |
commit | 25354c03a559f808a78435e6399aed43a514dc97 (patch) | |
tree | 4b5cec2f979c0251bdfabc6de331bd8e5721b4e7 /.forgejo | |
parent | Merge pull request 'feat: use oci mirror for `tonistiigi/xx` image' (#5965) f... (diff) | |
parent | chore(ci): make release-notes-assistant job copy/pastable (diff) | |
download | forgejo-25354c03a559f808a78435e6399aed43a514dc97.tar.xz forgejo-25354c03a559f808a78435e6399aed43a514dc97.zip |
Merge pull request 'chore(ci): make release-notes-assistant job copy/pastable' (#6019) from earl-warren/forgejo:wip-ci-labels into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6019
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Diffstat (limited to '.forgejo')
-rw-r--r-- | .forgejo/workflows/release-notes-assistant.yml | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/.forgejo/workflows/release-notes-assistant.yml b/.forgejo/workflows/release-notes-assistant.yml index b1e2578fcf..bd668d82b6 100644 --- a/.forgejo/workflows/release-notes-assistant.yml +++ b/.forgejo/workflows/release-notes-assistant.yml @@ -1,3 +1,5 @@ +name: issue-labels + on: pull_request_target: types: @@ -7,22 +9,31 @@ on: jobs: release-notes: - if: ( vars.ROLE == 'forgejo-coding' ) && contains(github.event.pull_request.labels.*.name, 'worth a release-note') + if: > + vars.ROLE == 'forgejo-coding' && + + secrets.RELEASE_NOTES_ASSISTANT_TOKEN != '' && + + github.event_name == 'pull_request' && + contains(github.event.pull_request.labels.*.name, 'worth a release-note') && + ( + github.event.action == 'label_updated' || + github.event.action == 'edited' || + github.event.action == 'synchronized' + ) + runs-on: docker container: image: 'code.forgejo.org/oci/node:20-bookworm' steps: - - uses: https://code.forgejo.org/actions/checkout@v4 - - - name: event + - name: Debug info run: | cat <<'EOF' - ${{ toJSON(github.event.pull_request.labels.*.name) }} - EOF - cat <<'EOF' - ${{ toJSON(github.event) }} + ${{ toJSON(github) }} EOF + - uses: https://code.forgejo.org/actions/checkout@v4 + - uses: https://code.forgejo.org/actions/setup-go@v5 with: go-version-file: "go.mod" |