Trigger Source Operations on a Schedule #1342
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Source Operations on a Schedule | |
on: | |
schedule: | |
# Run at 00:15 every day | |
- cron: '15 */19 * * *' | |
workflow_dispatch: | |
env: | |
PLATFORMSH_CLI_TOKEN: ${{ secrets.TEMPLATES_CLI_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.TEMPLATES_GITHUB_TOKEN }} | |
jobs: | |
run_dm_update: | |
name: Trigger Source Op | |
runs-on: ubuntu-latest | |
if: ${{ github.repository_owner == 'platformsh-templates' }} | |
steps: | |
- name: 'Run source ops' | |
id: run-source-op | |
uses: platformsh/gha-run-sourceops-update@main | |
with: | |
github_token: ${{ secrets.TEMPLATES_GITHUB_TOKEN }} | |
platformsh_token: ${{ secrets.TEMPLATES_CLI_TOKEN }} |