Skip to content

Commit

Permalink
Merge pull request #53 from zowe/update-workflow-dispatch-action
Browse files Browse the repository at this point in the history
Use GH CLI to run workflows instead
  • Loading branch information
awharn authored Feb 5, 2024
2 parents 77e25c3 + 3684633 commit 1a5a1c4
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,25 @@ name: Cron Workflows
on:
schedule:
- cron: '0 0 * * *'
env:
GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }}

jobs:
v1-lts:
runs-on: ubuntu-latest
steps:
- name: Test Scripts
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Test Scripts
token: ${{ secrets.ZOWE_ROBOT_TOKEN }}
ref: zowe-v1-lts
run: gh workflow run -r zowe-v1-lts test.yml

- name: WebHelp CI
uses: benc-uk/workflow-dispatch@v1
with:
workflow: CI for WebHelp Contribution
token: ${{ secrets.ZOWE_ROBOT_TOKEN }}
inputs: '{ "release": "false" }'
ref: zowe-v1-lts
run: gh workflow run -r zowe-v1-lts -f release=false main.yml

v2-lts:
runs-on: ubuntu-latest
steps:
- name: Test Scripts
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Test Scripts
token: ${{ secrets.ZOWE_ROBOT_TOKEN }}
ref: master
run: gh workflow run -r master test.yml

- name: WebHelp CI
uses: benc-uk/workflow-dispatch@v1
with:
workflow: CI for WebHelp Contribution
token: ${{ secrets.ZOWE_ROBOT_TOKEN }}
inputs: '{ "release": "false" }'
ref: master
run: gh workflow run -r master -f release=false main.yml

0 comments on commit 1a5a1c4

Please sign in to comment.