Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Bump contributor-assistant/github-action from 2.2.0 to 2.5.0 in /.github/workflows #162

Bump contributor-assistant/github-action from 2.2.0 to 2.5.0 in /.github/workflows

Bump contributor-assistant/github-action from 2.2.0 to 2.5.0 in /.github/workflows #162

Workflow file for this run

name: JSON check
on:
pull_request_target:
jobs:
json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: "refs/pull/${{ github.event.pull_request.number }}/merge"
- name: json-syntax-check
uses: limitusus/json-syntax-check@v1
with:
pattern: "\\.json$"
- name: Comment PR
uses: unofficial-skills/actions-comment-pull-request@main
with:
message: |
✅ Welcome your PR has been validated successfully.
GITHUB_TOKEN: ${{ secrets.BOT }}
auto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: "refs/pull/${{ github.event.pull_request.number }}/merge"
- name: Expose git commit data
uses: rlespinasse/[email protected]
- name: Print git commit data
run: |
echo "Get author info"
echo " - ${{ env.GIT_COMMIT_AUTHOR }}"
echo " - ${{ env.GIT_COMMIT_AUTHOR_NAME }}"
echo " - ${{ env.GIT_COMMIT_AUTHOR_EMAIL }}"
echo "Get committer info"
echo " - ${{ env.GIT_COMMIT_COMMITTER }}"
echo " - ${{ env.GIT_COMMIT_COMMITTER_NAME }}"
echo " - ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}"
echo "Get message info"
echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}"
echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}"
echo " - ${{ env.GIT_COMMIT_MESSAGE_BODY }}"
- name: andrew
if: env.GIT_COMMIT_AUTHOR_NAME == 'andrewstech'
uses: alexwilson/enable-github-automerge-action@main
with:
github-token: "${{ secrets.BOT }}"
- name: Comment PR
if: env.GIT_COMMIT_AUTHOR_NAME == 'andrewstech'
uses: unofficial-skills/actions-comment-pull-request@main
with:
message: |
✅ Welcome Andrew your PR will be auto merged when CI passes.
GITHUB_TOKEN: ${{ secrets.BOT }}
- name: blue
if: env.GIT_COMMIT_AUTHOR_NAME == 'blueedgetechno'
uses: alexwilson/enable-github-automerge-action@main
with:
github-token: "${{ secrets.BOT }}"
- name: Comment PR
if: env.GIT_COMMIT_AUTHOR_NAME == 'blueedgetechno'
uses: unofficial-skills/actions-comment-pull-request@main
with:
message: |
✅ Welcome Blue your PR will be auto merged when CI passes.
GITHUB_TOKEN: ${{ secrets.BOT }}
run-if-fail:
if: ${{ always() && (needs.json.result=='failure') }}
needs: [json]
runs-on: ubuntu-latest
steps:
- name: Comment PR
uses: unofficial-skills/actions-comment-pull-request@main
with:
message: |
❌ Storing of the JSON file has failed due to verification issues
GITHUB_TOKEN: ${{ secrets.BOT }}