Skip to content

Commit

Permalink
fix(actions): Exclude prod branch from community labels (#5540)
Browse files Browse the repository at this point in the history
* fix(actions): Exclude prod branch from community labels

The prod branch monitors the latest deployed code in Novu Cloud.

* fix(actions): Pin @oktokit/actions to v6 that works with CJS

This is a quick fix to restore the labeler workflows until we port everything to ESM.
  • Loading branch information
SokratisVidros authored May 10, 2024
1 parent 04379a7 commit 98755f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/community-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Add Community Label
on:
pull_request_target:
types: [opened]
branches:
- '!prod'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -19,7 +21,7 @@ jobs:
with:
node-version: 20.8.1
- name: Install Octokit
run: npm --prefix .github/workflows/scripts install @octokit/action
run: npm --prefix .github/workflows/scripts install @octokit/action@6

- name: Check if user is a community contributor
id: check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
node-version: 20.8.1
- name: Install Octokit
run: npm --prefix .github/workflows/scripts install @octokit/action
run: npm --prefix .github/workflows/scripts install @octokit/action@6

- name: Check if user is a community contributor
id: check
Expand Down

0 comments on commit 98755f9

Please sign in to comment.