build(deps): bump goreleaser/goreleaser-action from 5 to 6 #71
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: Pull Request Authentication Check | |
on: | |
pull_request: | |
branches-ignore: | |
- 'dependabot/**' | |
workflow_dispatch: | |
env: | |
GITHUB_OAUTH_TOKEN: ${{ secrets.AUTH_CHECK_GITHUB }} | |
jobs: | |
check-pr-user: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- id: approve_colab_user | |
name: Check PR user | |
uses: docker://jackstock8904/auth-check:latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Output | |
run: echo ${{ steps.approve_colab_user.outputs.approve_colab_user }} | |
- name: Comment on PR if true | |
uses: actions/github-script@v7 | |
if: steps.approve_colab_user.outputs.approve_colab_user == 'true' | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: 'This is a known Colaborator. Please Review this Pull Request.' | |
}); | |
- name: adding collaborator | |
uses: docker://jackstock8904/assignee:latest | |
if: steps.approve_colab_user.outputs.approve_colab_user == 'true' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Comment on PR if false | |
uses: actions/github-script@v7 | |
if: steps.approve_colab_user.outputs.approve_colab_user == 'false' | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: 'This isn't a known Colaborator. This Pull Request will now be closed.' | |
}); | |
- name: close pull request | |
uses: docker://jackstock8904/close-pr:latest | |
if: steps.approve_colab_user.outputs.approve_colab_user == 'false' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |