diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 44c96dcd..1d883ddc 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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, + } + });