diff options
author | LASER-Yi <[email protected]> | 2021-06-22 23:19:24 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2021-06-22 23:19:24 +0800 |
commit | 3b4f4afee0d21b4bbb694abb3d43a1703cf8b84f (patch) | |
tree | fe5d5de0d3c1254fc8e1c6fbc383e63b672c0023 /.github | |
parent | 454e73779e5dde03e41fa612e9bfddd8e31f243f (diff) | |
download | bazarr-3b4f4afee0d21b4bbb694abb3d43a1703cf8b84f.tar.gz bazarr-3b4f4afee0d21b4bbb694abb3d43a1703cf8b84f.zip |
no log: Update schedule.yaml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/schedule.yaml | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/.github/workflows/schedule.yaml b/.github/workflows/schedule.yaml index f8330651c..968853834 100644 --- a/.github/workflows/schedule.yaml +++ b/.github/workflows/schedule.yaml @@ -8,20 +8,10 @@ on: jobs: Release-Nightly: runs-on: ubuntu-latest - env: - GIT_BRANCH: "development" - WORKFLOW_TO_TRIGGER: "release_beta_to_dev.yaml" steps: - name: Execute - run: | - echo "**** Trigging ${{ env.WORKFLOW_TO_TRIGGER }} of branch ${{ env.GIT_BRANCH }} ****" - if curl -sfX GET https://raw.githubusercontent.com/${{ github.repository }}/${{ env.GIT_BRANCH }}/.github/workflows/${{ env.WORKFLOW_TO_TRIGGER }} > /dev/null 2>&1; then - echo "**** Workflow exists. Triggering workflow for branch ${{ env.GIT_BRANCH }} ****" - curl -ifX POST \ - -H "Authorization: token ${{ secrets.WF_GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - -d "{\"ref\":\"refs/heads/${{ env.GIT_BRANCH }}\"}" \ - https://api.github.com/repos/${{ github.repository }}/actions/workflows/${{ env.WORKFLOW_TO_TRIGGER }}/dispatches - else - echo "**** Workflow doesn't exist! Skipping... ****" - fi + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: "release_beta_to_dev" + token: ${{ secrets.WF_GITHUB_TOKEN }} + ref: "refs/heads/development" |