Skip to content

Commit 165aa45

Browse files
committed
chore(governance): fix workflow action requirements & syntax
1 parent d1b8e83 commit 165aa45

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/on_merged_pr.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
const prBody = context.payload.body;
2121
const prNumber = context.payload.number;
2222
const releaseLabel = process.env.RELEASE_LABEL;
23+
const maintainersTeam = process.env.MAINTAINERS_TEAM
2324
2425
const RELATED_ISSUE_REGEX = /Issue number:.+(\d)/
2526
@@ -36,7 +37,7 @@ jobs:
3637
labels: [releaseLabel]
3738
})
3839
} else {
39-
let msg = `${MAINTAINERS_TEAM} No related issues found. Please ensure '${RELEASE_LABEL}.' label is applied before releasing.`;
40+
let msg = `${maintainersTeam} No related issues found. Please ensure '${RELEASE_LABEL}.' label is applied before releasing.`;
4041
await github.rest.issues.createComment({
4142
owner: context.repo.owner,
4243
repo: context.repo.repo,

.github/workflows/on_opened_pr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- name: "Ensure related issue is present"
2828
uses: actions/github-script@v6
2929
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
3031
# Maintenance: convert into a standalone JS like post_release.js
3132
script: |
3233
const prBody = ${{ needs.get_pr_details.outputs.prBody }};

0 commit comments

Comments
 (0)