add healthcheck #30
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: Check Moderation Tag | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ '*' ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: config github | |
env: | |
TOKEN: ${{ secrets.PKKING_PERSONAL_TOKEN }} | |
USER: ${{ secrets.USER_NAME }} | |
run: echo "machine github.com login $USER password $TOKEN" > ~/.netrc && chmod 400 ~/.netrc | |
- name: Run moderation tag check script | |
run: cd scripts && bash -x moderation_tag_check.sh | |
- name: Self Hosted Runner Post Job Cleanup Action | |
uses: TooMuch4U/actions-clean@master | |
- name: cleanup | |
run: rm -rf ~/.netrc |