.github/workflows/main.yml #1207
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
on: | |
schedule: | |
- cron: '0 7 * * *' | |
workflow_dispatch: | |
jobs: | |
sync_with_upstream: | |
runs-on: ubuntu-latest | |
name: Sync main with upstream latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
fetch-depth: 0 | |
- name: Pull (Fast-Forward) upstream changes | |
id: sync | |
uses: aormsby/[email protected] | |
with: | |
upstream_repository: barbarer/py4e-int | |
upstream_branch: master | |
target_branch: master | |
- name: Check for new commits | |
if: steps.sync.outputs.has_new_commits | |
run: echo "There were new commits." | |
# Step 4: Print a helpful timestamp for your records (not required, just nice) | |
- name: Timestamp | |
run: date |