Skip to content

Commit

Permalink
Update auto_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liudonghua123 committed Oct 23, 2023
1 parent 7d2eabf commit fa30fad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/auto_build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: auto_build
on:
schedule:
- cron: '0 * * * *'
- cron: '*/10 * * * *'

# https://docs.github.com/zh/actions/using-jobs/assigning-permissions-to-jobs
permissions: write-all
Expand Down Expand Up @@ -73,9 +73,9 @@ jobs:
core.info(`\u001b[35mtag_updated: ${tag_updated}, latest_upstream_tag_name: ${latest_upstream_tag_name}, current_tag_name: ${current_tag_name}`);
// Exporting variables
// see also
core.exportVariable('tag_updated', tag_updated);
core.exportVariable('latest_upstream_tag_name', latest_upstream_tag_name);
core.exportVariable('current_tag_name', current_tag_name);
core.setOutput('tag_updated', `${tag_updated}`);
core.setOutput('latest_upstream_tag_name', latest_upstream_tag_name);
core.setOutput('current_tag_name', current_tag_name);
// invoke build action if tag_updated
if (!tag_updated) {
core.info('tag not updated, skip trigger build action to run');
Expand All @@ -89,8 +89,8 @@ jobs:
(async () => { await main(); })();
# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
- name: Triggering workflow of build.yml
if: ${{ steps.check_tag_updated.outputs.tag_updated }}
- name: Triggering workflow of build.yml on ${{ steps.check_tag_updated.outputs.tag_updated }}
if: steps.check_tag_updated.outputs.tag_updated == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit fa30fad

Please sign in to comment.