Skip to content

add: add ssh config #89

add: add ssh config

add: add ssh config #89

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