Check for new releases #461
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
################### | |
# ENV VARS: | |
# - PAT (generated at Personal Access Tokens - with workflow access checked) | |
################### | |
name: Check for new releases | |
# Check automatically for new releases (new version) | |
on: | |
schedule: | |
- cron: "0 0 */1 * *" | |
workflow_dispatch: | |
jobs: | |
get-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Fetch release version | |
id: fetch-version | |
run: | | |
curl -sL https://raw.githubusercontent.com/strapi/strapi/main/packages/core/strapi/package.json | jq -r ".version" > release-versions/strapi-latest.txt | |
echo ::set-output name=version::$(cat release-versions/strapi-latest.txt) | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: New auto release v${{steps.fetch-version.outputs.version}} |