Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GH CLI to run workflows instead #53

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading