Skip to content

Commit

Permalink
try two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Dec 21, 2023
1 parent 04d6d44 commit db5f654
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,18 @@ jobs:
name: junit-results
path: packages/*/results.xml

- name: trigger processing of results
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
- uses: actions/create-github-app-token@v1
id: generate_token
# if: github.ref == 'refs/heads/main'
with:
script: |
const { createAppAuth } = require("@octokit/auth-app");
const gh = new Octokit({
authStrategy: createAppAuth,
auth: {
appId: process.env.CICD_ROBOT_GITHUB_APP_ID,
privateKey: process.env.CICD_ROBOT_GITHUB_APP_PRIVATE_KEY,
installationId: process.env.CICD_ROBOT_GITHUB_APP_INSTALLATION_ID,
},
})
await gh.rest.actions.createWorkflowDispatch({
owner: 'TBD54566975',
repo: 'sdk-development',
workflow_id: 'build-report.yaml',
ref: 'main',
});
app-id: ${{ vars.CICD_ROBOT_GITHUB_APP_ID }}
private-key: ${{ secrets.CICD_ROBOT_GITHUB_APP_PRIVATE_KEY }}

- name: trigger sdk-development report build
run: |
curl -H "Authorization: Bearer ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/TBD54566975/sdk-development/actions/workflows/build-report.yaml/dispatches --data '{"ref": "main"}'
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}


test-with-browsers:
Expand Down

0 comments on commit db5f654

Please sign in to comment.