trigger #18
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 | |
on: | |
schedule: | |
- cron: '30 5 * * *' # every day at 5:30 AM | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
trigger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Check for new commits in kanata/parser | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd ./kanata | |
if git diff --quiet origin/main -- parser; then | |
echo "no new commits, skip release" | |
else | |
cd .. | |
gh workflow run publish.yml | |
fi |