Skip to content

Commit

Permalink
[pinpoint-apm#8243] repository dispatch github action
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Nov 11, 2021
1 parent 357123f commit b52c4cf
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/homepage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,34 @@ jobs:
repository-dispatch-event:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- run: 'echo "payload github: ${{ toJson(github) }}"'
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: feelform/pinpoint-apm.github.io
event-type: updated-pinpoint-respository
client-payload: '{"author-name": "${{ github.event.pusher.name }}", "author-email": "${{ github.event.pusher.email }}", "message": "${{ github.event.head_commit.message }}", "id": "${{ github.event.head_commit.id }}"}'
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJSON(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJSON(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJSON(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJSON(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: echo "$MATRIX_CONTEXT"
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: feelform/pinpoint-apm.github.io
event-type: updated-pinpoint-respository
client-payload: '{"username": "${{ github.actor }}", "release": ${{ toJSON(github.event.release) }}}'

0 comments on commit b52c4cf

Please sign in to comment.