diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8ae437a..48664a5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,60 +59,3 @@ jobs: - name: Test ${{ env.APP_NAME }} run: go test -v ./... - - changelog: - name: Changelog - needs: - - lint - - test - if: github.event_name != 'pull_request' - runs-on: ubuntu-latest - - outputs: - skipped: ${{ steps.changelog.outputs.skipped }} - tag: ${{ steps.changelog.outputs.tag }} - clean_changelog: ${{ steps.changelog.outputs.clean_changelog }} - version: ${{ steps.changelog.outputs.version }} - - env: - PR_BRANCH: release-ci-${{ github.sha }} - - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - - name: Create Branch - run: | - git checkout -b ${{ env.PR_BRANCH }} - - - name: Create Changelog - uses: TriPSs/conventional-changelog-action@dd734f74fce61a6e02f821ee1b5930bc79a23534 # v5 - id: changelog - with: - github-token: ${{ github.token }} - git-user-name: "github-actions[bot]" - git-user-email: "github-actions[bot]@users.noreply.github.com" - git-branch: ${{ env.PR_BRANCH }} - skip-git-pull: true - output-file: false - version-file: .github/package.yaml - create-summary: true - - - name: Create Changelog PR - if: steps.changelog.outputs.skipped == 'false' - run: | - gh pr create --base main --head ${{ env.PR_BRANCH }} --title 'chore(release): ${{ steps.changelog.outputs.tag }} [skip-ci]' --body '${{ steps.changelog.outputs.clean_changelog }}' - env: - GH_TOKEN: ${{ github.token }} - - - name: Approve Changelog PR - if: steps.changelog.outputs.skipped == 'false' - run: | - gh pr review --approve ${{ env.PR_BRANCH }} - env: - GH_TOKEN: ${{ secrets.GH_OWNER_TOKEN }} - - - name: Merge Changelog PR - if: steps.changelog.outputs.skipped == 'false' - run: | - gh pr merge --squash --auto --delete-branch ${{ env.PR_BRANCH }} - env: - GH_TOKEN: ${{ secrets.GH_OWNER_TOKEN }}