Skip to content

add repo-dispatch action with test#15

Merged
dennisvang merged 13 commits into
mainfrom
issue14-repo-dispatch
Jun 26, 2026
Merged

add repo-dispatch action with test#15
dennisvang merged 13 commits into
mainfrom
issue14-repo-dispatch

Conversation

@dennisvang

@dennisvang dennisvang commented Feb 19, 2025

Copy link
Copy Markdown
Collaborator

Added a repo-dispatch action that triggers a repository_dispatch event in another repository via the github API.

This requires a personal access token with "Contents" write permission for the target repository, in the secret-token variable.

See api docs.

Usage example:

jobs:
  e2e:
    needs: publish
    runs-on: ubuntu-latest
    steps:
      - name: trigger e2e tests
        uses: FAIRDataTeam/github-workflows/.github/actions/repo-dispatch@v3
        with:
          secret-token: ${{ secrets.MY_REPO_DISPATCH_TOKEN }}
          target-repo-name: FAIRDataPoint-E2E-Tests
          target-repo-owner: FAIRDataTeam
          event-type: trigger-tests
          client-payload: |
            {
                "fdp_version": "${{ github.ref_name }}",
                "fdp_client_version": "latest"
            }

fixes #14

@dennisvang dennisvang marked this pull request as draft February 19, 2025 13:05
@dennisvang dennisvang force-pushed the issue14-repo-dispatch branch from 1ef616b to 4dc96be Compare February 19, 2025 13:07
@dennisvang dennisvang force-pushed the issue14-repo-dispatch branch from 68b399b to 1db94b6 Compare June 3, 2025 10:57
@dennisvang dennisvang force-pushed the issue14-repo-dispatch branch from 1db94b6 to 5dba6e7 Compare June 26, 2026 08:31
@dennisvang dennisvang marked this pull request as ready for review June 26, 2026 09:50
@dennisvang dennisvang merged commit 28de58e into main Jun 26, 2026
9 checks passed
@dennisvang dennisvang deleted the issue14-repo-dispatch branch June 26, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

repository dispatch action

1 participant