Skip to content

Commit

Permalink
Merge pull request #1 from ii/add-prow-github-action
Browse files Browse the repository at this point in the history
Add prow-github-action in response to comments
  • Loading branch information
hh authored Nov 17, 2022
2 parents 8507a90 + c93e834 commit 51f2660
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pga-comment.yaml
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 }}

0 comments on commit 51f2660

Please sign in to comment.