Check For Engine Releases #289
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 Engine Releases | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
check_status: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.check_release.outputs.matrix }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check Download Status | |
id: check_release | |
uses: luxtorpeda-dev/action-check-new-engine-release@main | |
create_prs: | |
runs-on: ubuntu-latest | |
if: ${{ needs.check_status.outputs.matrix && needs.check_status.outputs.matrix != '{}' && needs.check_status.outputs.matrix != '' }} | |
needs: check_status | |
strategy: | |
matrix: ${{fromJson(needs.check_status.outputs.matrix)}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update Engine | |
uses: luxtorpeda-dev/action-update-engine-version@main | |
with: | |
engineName: ${{ matrix.engineName }} | |
newTag: ${{ matrix.newTag }} | |
oldTag: ${{ matrix.oldTag }} | |
- uses: actions/create-github-app-token@v1 | |
id: generate-token | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
owner: luxtorpeda-dev | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: ${{ matrix.engineName }} - Update to ${{ matrix.newTag }} | |
branch: update-${{ matrix.engineName }} | |
title: Update ${{ matrix.engineName }} | |
assignees: d10sfan | |
token: ${{ steps.generate-token.outputs.token }} |