在创建新的独立存储库时触发GitHub工作流

在创建新的独立存储库时触发GitHub工作流,github,github-api,github-actions,github-actions-runners,Github,Github Api,Github Actions,Github Actions Runners,我编写了以下代码,用于向存储库添加新标记。如果包含在我正试图直接更新的项目中,这将非常有效 name: Check Github Tags on: push jobs: check-git-tags: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - na

我编写了以下代码,用于向存储库添加新标记。如果包含在我正试图直接更新的项目中,这将非常有效

name: Check Github Tags

on: push

jobs: 
  check-git-tags:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Print Repository info
        run: |
          echo 'Commit:' $GITHUB_SHA
          echo 'Repository:' $GITHUB_REPOSITORY
          echo 'Workspace:' $GITHUB_WORKSPACE
          echo 'Ref:' $GITHUB_REF
          git tag
      - name: Push new tag
        id: push_new_tag
        uses: anothrNick/github-tag-action@1.17.2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CUSTOM_TAG: test2
      - name: Print New Tag Added
        run: echo 'New tag' ${{steps.push_new_tag.outputs.new_tag}} 'added to commit' $GITHUB_SHA 'in' $GITHUB_REPOSITORY.
我的问题:我可以从其他项目/存储库之外执行此脚本吗?我需要“侦听”组织内正在创建的任何新存储库,然后标记该存储库以确保它具有“test2”标记。所以我真的只需要在第一次推出任何新回购协议时运行工作流。但我不知道谁将创建回购协议,它将被称为什么,等等。是否可以将其作为单独的脚本运行