Event Router fixes and improvements #8703
Workflow file for this run
This file contains 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: pr2changelog | |
on: | |
pull_request_target: | |
paths-ignore: | |
- "CHANGELOG.md" | |
branches: | |
- develop | |
types: | |
- closed | |
- edited | |
- opened | |
jobs: | |
dry_check: | |
if: github.event.pull_request.merged == false | |
name: changelog generator dry check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: pr2changelog | |
id: pr2changelog | |
uses: corp-0/pr2changelog@api-integration | |
with: | |
categories: Fix;New;Improvement;Balance | |
write_to_file: false | |
- name: Comment PR | |
if: ${{ steps.pr2changelog.outputs.found_changes == 0}} | |
uses: thollander/actions-comment-pull-request@v1 | |
with: | |
message: | | |
Your PR has no registered changes in its description! | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
after_merge: | |
if: github.event.pull_request.merged == true | |
name: changelog generator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: pr2changelog | |
id: pr2changelog | |
uses: corp-0/pr2changelog@api-integration | |
with: | |
categories: Fix;New;Improvement;Balance | |
write_to_file: false | |
api_secret_token: ${{ secrets.CHANGELOG_API_SECRET }} | |
api_url: "https://changelog.unitystation.org/register-change" | |
- name: Comment PR | |
if: ${{ steps.pr2changelog.outputs.generated_changelog == 0}} | |
uses: thollander/actions-comment-pull-request@v1 | |
with: | |
message: | | |
Your PR was merged with no registered changes or there was a problem with the API caller. | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |