Nightly Sync of content #1179
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: Nightly Sync of content | |
on: | |
schedule: | |
- cron: '0 3 * * *' # run daily at 3am | |
jobs: | |
sync: | |
if: github.repository == 'semver/semver.org' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- name: Collect latest releases | |
run: npm run collect | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4.0.4 | |
with: | |
commit-message: 'feat: Updated SemVer spec' | |
title: Original specification updates | |
body: Auto-generated PR with specification updates from [semver/semver](https://github.com/semver/semver) repo. Please close this PR and immediately re-open it to trigger check run. More details in ["Triggering further workflow runs"](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs). |