Skip to content

Commit

Permalink
Update redploy-to-server.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rootCircle authored Oct 17, 2023
1 parent 398841b commit 64a5988
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/redploy-to-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,22 @@ on:
workflow_dispatch:

jobs:
triggering:
name: Deploy Backend
dispatch:
runs-on: ubuntu-latest
steps:
- name: Deploy Stage
uses: actions/github-script@v6
with:
script: |
await github.rest.actions.createWorkflowDispatch({
'zenlang-rs',
'backend',
'workflows/deploy.yml',
'main',
});
# - run: |
# curl -u "${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" \
# -H "Accept: application/vnd.github.everest-preview+json" \
# -H "Content-Type: application/json" \
# https://api.github.com/repos/docker-sstc/docker-notify/actions/workflows/main.yml/dispatches \
# --data '{"ref": "master"}'
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'zenlang-rs',
repo: 'backend',
workflow_id: 'deploy.yml',
ref: 'main'
})

0 comments on commit 64a5988

Please sign in to comment.