Draft new release #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Draft new release | |
| on: | |
| workflow_run: | |
| workflows: [ "Deploy to Amazon ECS" ] # ecs 배포 워크플로우가 완료된 후 실행 | |
| types: | |
| - completed | |
| push: | |
| branches: | |
| - release # release 브랜치에 푸시될 때 실행 | |
| jobs: | |
| build: | |
| # release에 push 되거나 || ecs 운영 배포 워크플로우가 성공적으로 완료된 경우에만 실행 | |
| if: | | |
| github.event_name == 'push' || | |
| (github.event_name == 'workflow_run' && | |
| github.event.workflow_run.conclusion == 'success' && | |
| github.event.workflow_run.head_branch == 'release') | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Release | |
| # reference : https://github.com/release-drafter/release-drafter | |
| uses: release-drafter/release-drafter@v6 | |
| with: | |
| config-name: release-drafter-config.yml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} |