Refactor inspection findings #354
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: Notify migration changes | |
on: | |
pull_request_target: | |
branches: [main] | |
paths: [backend/api/Migrations/**] | |
env: | |
message: | | |
:bell: Migrations changes detected :bell: | |
:mega: Remember to comment "/UpdateDatabase" after review approval for migrations to take effect! | |
jobs: | |
Notify_Migration: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check for previous comment | |
id: notify_comment_search | |
uses: peter-evans/find-comment@v2 | |
with: | |
issue-number: ${{ github.event.number }} | |
body-includes: ${{ env.message }} | |
- name: Add comment if no comment exists | |
if: ${{ !steps.notify_comment_search.outputs.comment-body }} | |
uses: peter-evans/create-or-update-comment@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: ${{ github.event.number }} | |
body: ${{ env.message }} | |
- name: Add label | |
uses: actions-ecosystem/action-add-labels@v1 | |
with: | |
labels: database-change |