Skip to content

Commit

Permalink
Exp
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer [email protected]
  • Loading branch information
sbueringer committed May 7, 2024
1 parent cc5e568 commit 1107a38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/pr-gh-workflow-approve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,9 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const result = await github.rest.actions.listWorkflowRunsForRepo({
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
event: "pull_request",
status: "action_required",
head_sha: context.payload.pull_request.head.sha,
per_page: 100
});
for (var run of result.data.workflow_runs) {
await github.rest.actions.approveWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: run.id
});
}
workflow_id: 'lint',
ref: context.ref,
})
1 change: 1 addition & 0 deletions .github/workflows/pr-golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: PR golangci-lint
on:
pull_request:
types: [opened, edited, synchronize, reopened]
workflow_dispatch:

# Remove all permissions from GITHUB_TOKEN except metadata.
permissions: {}
Expand Down

0 comments on commit 1107a38

Please sign in to comment.