diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81a106b9db4..b0b060e0456 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,16 +18,6 @@ concurrency: jobs: - labeler: - if: github.event_name == 'pull_request' - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - uses: lablup/auto-labeler@main - - lint-and-typecheck: if: | !contains(github.event.pull_request.labels.*.name, 'skip:ci') diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..5b445418bf8 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: labeler + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: lablup/auto-labeler@main diff --git a/changes/9610.misc.md b/changes/9610.misc.md new file mode 100644 index 00000000000..534a89ddd38 --- /dev/null +++ b/changes/9610.misc.md @@ -0,0 +1 @@ +Separate labeler workflow into standalone file to fix 403 permission errors on fork PRs \ No newline at end of file