mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-24 10:20:59 +02:00
Merge pull request #3350 from stevehipwell/fix-gh-action-workflow-approve
Fixed bad syntax in GH action workflow approval
This commit is contained in:
commit
ebf35f337d
3
.github/workflows/gh-workflow-approve.yaml
vendored
3
.github/workflows/gh-workflow-approve.yaml
vendored
@ -18,11 +18,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Update PR
|
- name: Update PR
|
||||||
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
|
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
|
||||||
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
debug: ${{ secrets.ACTIONS_RUNNER_DEBUG }}
|
debug: ${{ secrets.ACTIONS_RUNNER_DEBUG }}
|
||||||
script: |
|
script: |
|
||||||
const workflowRuns = await octokit.rest.actions.listWorkflowRunsForRepo({
|
const workflowRuns = await github.rest.actions.listWorkflowRunsForRepo({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
event: "pull_request",
|
event: "pull_request",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user