37 lines
881 B
YAML
37 lines
881 B
YAML
name: Trigger sync
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
trigger:
|
|
# skip if pushed by our bot (breaks the loop)
|
|
if: github.actor != 'pullfrog[bot]'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Get installation token
|
|
id: token
|
|
uses: ./get-installation-token
|
|
with:
|
|
repos: pullfrog
|
|
|
|
- uses: peter-evans/repository-dispatch@v3
|
|
with:
|
|
token: ${{ steps.token.outputs.token }}
|
|
repository: pullfrog/pullfrog
|
|
event-type: action-repo-updated
|
|
client-payload: |
|
|
{
|
|
"before": "${{ github.event.before }}",
|
|
"after": "${{ github.event.after }}",
|
|
"compare_url": "${{ github.event.compare }}",
|
|
"pusher": "${{ github.actor }}"
|
|
}
|