File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 run : BRANCH="${GITHUB_REF#refs/heads/}"; echo -e "BRANCH=$BRANCH\nDOCKER_TAG=${BRANCH//master/latest}" >> $GITHUB_ENV
1717
1818 - name : Repository Dispatch
19- uses : myrotvorets/trigger-repository-dispatch-action@1.1.0
19+ uses : actions/github-script@v8
2020 with :
21- token : ${{ secrets.DOCKER_OPENSIPS_CLI_PAT }}
22- repo : OpenSIPS/docker-opensips-cp
23- type : OpenSIPS CP trigger
24- payload : ' {"docker_tag": "${{ env.DOCKER_TAG }}", "branch": "${{ env.BRANCH}}"}'
21+ github-token : ${{ secrets.DOCKER_OPENSIPS_CLI_PAT }}
22+ script : |
23+ await github.rest.repos.createDispatchEvent({
24+ owner: 'OpenSIPS',
25+ repo: 'docker-opensips-cp',
26+ event_type: 'OpenSIPS CP trigger',
27+ client_payload: {
28+ docker_tag: process.env.DOCKER_TAG,
29+ branch: process.env.BRANCH
30+ }
31+ });
You can’t perform that action at this time.
0 commit comments