Skip to content

Commit

Permalink
trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizencc committed Jul 26, 2023
1 parent 887338c commit c879f51
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
# https://octokit.github.io/rest.js
# https://github.com/actions/toolkit/blob/master/packages/github/src/context.ts

name: PR Linter
on:
issue_comment:
types: [created]
name: pr-linter-trigger
pull_request_review:
types:
- submitted
- edited
status:

jobs:
dummy-workflow:
validate-pr:
# Necessary to have sufficient permissions to write to the PR
permissions:
contents: read
pull-requests: write
statuses: read
issues: read
runs-on: ubuntu-latest
name: trigger
steps:
- name: Explanation
run: echo "this is a dummy workflow that triggers a workflow_run; it's necessary because otherwise the repo secrets will not be in scope for externally forked pull requests"
- name: Checkout
uses: actions/checkout@v3

- name: Validate
run: echo ${{ secrets.PROJEN_GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.PROJEN_GITHUB_TOKEN }}
REPO_ROOT: ${{ github.workspace }}

0 comments on commit c879f51

Please sign in to comment.