Skip to content

Commit

Permalink
testing pat
Browse files Browse the repository at this point in the history
  • Loading branch information
HarriPra committed Mar 18, 2024
1 parent be766ba commit 74318c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/repo-dispatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function run() {//change function name
console.log("THIS IS THE CLIENT PAYLOAD " + clientPayload)

console.log("THIS IS THE CLIENT " + JSON.stringify(client))
console.log("THIS IS THE CLIENT " + JSON.stringify(client.rest.repos))
console.log("THIS IS THE CLIENT, rest, repos " + JSON.stringify(client.rest.repos))
// Send a repository dispatch event to the specified repository
await client.rest.repos.createDispatchEvent({
owner, // Repository owner
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cross-repo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -H "Authorization: token $GITHUB_TOKEN" \
curl -H "Authorization: token $PAT" \
https://api.github.com/repos/${{ github.repository }}
- name: Trigger deployment in another repo
uses: ./.github/actions/repo-dispatch
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
target-repository: UKHSA-Internal/hpod-ukhsa-generate-webform-url-citizen # Replace target repository's name
target-repository: UKHSA-Internal/hpod-ukhsa-generate-webform-url-citizen
event-type: trigger-deployment # This is a custom event type we listen for in deployment.yml
clientPayload: '{"ref": "main"}'

0 comments on commit 74318c3

Please sign in to comment.