Skip to content

Commit

Permalink
test it on push
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemzif1 committed Nov 26, 2023
1 parent b739832 commit 101c209
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,25 @@ jobs:
- run: make clean
- run: make install
- run: make build
- name : "Trigger Oauth Service Pipeline Workflow"
uses : actions/github-script@v5
with :
github-token : ${{ secrets.E2E_WORKFLOW_TOKEN }}
script : |
const {repo, sha} = process.env;
fe_react_version= '${{ env.NEW_VERSION }}'
const owner = context.payload.repository.organization
const oauthServiceRepo = 'oauth-service'
const workflow_id = 'update-react-dependency.yaml'
const context = `${owner}/${oauthServiceRepo}`
const dispatch_id = `${repo}/${sha}`
const data = await github.rest.actions.createWorkflowDispatch({
owner,
repo:oauthServiceRepo,
workflow_id,
ref: 'main',
inputs: {
fe_react_version,
}
});

0 comments on commit 101c209

Please sign in to comment.