-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ii/add-prow-github-action
Add prow-github-action in response to comments
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: issue_comment | ||
|
||
jobs: | ||
pr_commented: | ||
# This job only runs for pull request comments | ||
name: PR comment | ||
if: ${{ github.event.issue.pull_request }} | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Prow Github Actions for PR comment" | ||
env: | ||
NUMBER: ${{ github.event.issue.number }} | ||
REPO_OAUTH_TOKEN : ${{ github.token }} | ||
UNSPLASH_ACCESS_KEY : ${{ secrets.UNSPLASH_ACCESS_KEY }} | ||
uses: docker://ghcr.io/cncf-infra/prow-github-action:latest | ||
- name: "Capture runtime artefacts for development on pga" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: environment variables and event payload | ||
path: ${{ github.workspace }} | ||
issue_commented: | ||
# This job only runs for issue comments | ||
name: Issue comment | ||
if: ${{ !github.event.issue.pull_request }} | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Prow Github Actions for Issue Comment" | ||
env: | ||
NUMBER: ${{ github.event.issue.number }} | ||
REPO_OAUTH_TOKEN : ${{ github.token }} | ||
UNSPLASH_ACCESS_KEY : ${{ secrets.UNSPLASH_ACCESS_KEY }} | ||
uses: docker://ghcr.io/cncf-infra/prow-github-action:latest | ||
- name: "Capture runtime artefacts for development on pga" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: environment variables and event payload | ||
path: ${{ github.workspace }} |