将 Readme.md 的内容 翻译并覆盖到对应的 英文 readme 当中 #37
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: Block User By Label | |
on: | |
#push: | |
# branches: | |
# - 'main' | |
# paths: | |
# - '.github/workflows/block_user.yml' | |
issues: | |
types: | |
- labeled | |
concurrency: block-${{ github.ref }} | |
env: | |
OWNER_NAME: ${{ github.repository_owner }} | |
REPO_NAME: ${{ github.event.repository.name }} | |
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
WORKER_NAME: USER_BLOCK | |
jobs: | |
block_user: | |
runs-on: ubuntu-latest | |
if: github.event.label.name == 'aaa-block-user' | |
steps: | |
- uses: actions/checkout@v4 | |
#- name: 🔨 Setup .NET 6.X SDK | |
# uses: actions/setup-dotnet@v3 | |
# with: | |
# dotnet-version: '6.x' | |
- name: ☠️ Block User | |
run: dotnet test './test/workflow/Workflow.Runner' --nologo -c Release | |