1name: Docathon Labels Sync 2 3on: 4 pull_request_target: 5 types: [opened, synchronize, edited] 6 branches: [main] 7 8jobs: 9 check-labels: 10 runs-on: ubuntu-latest 11 permissions: 12 issues: write 13 pull-requests: write 14 steps: 15 - name: Check out the repo 16 uses: actions/checkout@v2 17 with: 18 fetch-depth: 1 19 - name: Set up Python 20 uses: actions/setup-python@v2 21 with: 22 python-version: 3.x 23 - name: Install dependencies 24 run: | 25 pip install requests==2.32.3 26 pip install PyGithub==2.3.0 27 - name: Run Python script 28 env: 29 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 30 run: python ./.github/scripts/docathon-label-sync.py ${{ github.event.pull_request.number }} 31