Check for new releases #606
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: Check for new releases | |
on: | |
schedule: | |
- cron: "15 0 */1 * *" | |
- cron: "0 0 */1 * *" | |
workflow_dispatch: | |
jobs: | |
get-v4-version: | |
name: V4 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Fetch v4 release version | |
id: fetch-v4-version | |
if: contains(github.event.schedule, '0 0 */1 * *') | |
run: | | |
curl -sL https://raw.githubusercontent.com/strapi/strapi/v4/packages/core/strapi/package.json | jq -r ".version" > release-versions/strapi-v4-latest.txt | |
echo "version=$(cat release-versions/strapi-v4-latest.txt)" >> "$GITHUB_OUTPUT" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: New auto release v${{steps.fetch-v4-version.outputs.version}} | |
get-v5-version: | |
name: V5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Fetch v5 release version | |
id: fetch-v5-version | |
if: contains(github.event.schedule, '15 0 */1 * *') | |
run: | | |
curl -sL https://raw.githubusercontent.com/strapi/strapi/main/packages/core/strapi/package.json | jq -r ".version" > release-versions/strapi-v5-latest.txt | |
echo "version=$(cat release-versions/strapi-v5-latest.txt)" >> "$GITHUB_OUTPUT" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: New auto release v${{steps.fetch-v5-version.outputs.version}} |