diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index 2537dedf..00000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Update Contributors - -on: pull_request_target - -jobs: - update_contributors_msg: - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - pr-message: "Make sure to also update https://github.com/R3voA3/3den-Enhanced/blob/master/CONTRIBUTORS.md" diff --git a/.github/workflows/pr_messages.yml b/.github/workflows/pr_messages.yml new file mode 100644 index 00000000..1f1b6cfd --- /dev/null +++ b/.github/workflows/pr_messages.yml @@ -0,0 +1,20 @@ +name: Update Contributors + +on: + # Trigger the workflow on push or pull request + pull_request: + branches: + - master +jobs: + comment: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Make sure to also update https://github.com/R3voA3/3den-Enhanced/blob/master/CONTRIBUTORS.md' + })