使一颗心免于哀伤(本人翻译版本) #186
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: Friend link workflow | |
on: | |
issues: | |
types: [ opened, edited, closed, deleted ] | |
jobs: | |
check_issue: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: friend-link | |
cancel-in-progress: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Run script | |
run: python .github/scripts/add_friend_link.py ${{ github.event.issue.number }} | |
env: | |
TOKEN: ${{ secrets.GH_TOKEN }} | |
REPOSITORY: ${{ github.repository }} | |
ISSUE_NUMBER: ${{ github.event.issue.number }} | |
# 操作,opend, edited, reopened | |
ACT_TYPE: ${{ github.event.action }} |