From 0fca41ddb2acbc07cdf104e0e73fc14f13e180b6 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Fri, 1 Dec 2023 08:28:52 +0000 Subject: [PATCH] chore: CI: remove changelog job --- .github/workflows/changelog.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml deleted file mode 100644 index c74a21d5a0..0000000000 --- a/.github/workflows/changelog.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: add PR to changelog - -on: - # needs read/write GH token, do *not* execute arbitrary code from PR - pull_request_target: - types: [closed] - -jobs: - update-changelog: - if: | - github.event.pull_request.merged == true && - contains(github.event.pull_request.labels.*.name, 'changelog') && - github.base_ref == 'master' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - # needs sufficiently elevated token to override branch protection rules - token: ${{ secrets.PUSH_NIGHTLY_TOKEN }} - - name: Update changelog - run: | - set -euxo pipefail - escaped_link=$(sed -e 's/[\/&]/\\&/g' <<'EOF' - [${{ github.event.pull_request.title}}](${{ github.event.pull_request.html_url }}) - EOF - ) - # insert link below first dashes line (https://stackoverflow.com/a/9453461/161659) - sed -i "0,/^---*/s/^---*/\0\n\n* $escaped_link./" RELEASES.md - # commit as github-actions bot (https://github.com/orgs/community/discussions/26560#discussioncomment-3252339) - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config user.name "github-actions[bot]" - git commit -i RELEASES.md -m "doc: update changelog" - git push