Update Extensions Manifest #424
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
# This is a basic workflow that is manually triggered | |
name: Update Extensions Manifest | |
# Controls when the action will run. Workflow runs when manually triggered using the UI | |
# or API. | |
on: | |
workflow_dispatch: | |
inputs: | |
bundled-games-only: | |
description: "Bundled games only?" | |
required: true | |
type: boolean | |
default: false | |
dry-run: | |
description: "Dry run?" | |
required: true | |
type: boolean | |
default: false | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '45 7 * * *' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job | |
Update-Extensions-Manifest: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
env: | |
DRY_RUN: ${{ !!(inputs.dry-run) }} | |
BUNDLED_GAMES_ONLY: ${{ !!(inputs.bundled-games-only) }} | |
NEXUS_APIKEY: ${{ secrets.NEXUS_APIKEY }} | |
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }} | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Show Inputs | |
run: echo "${{ toJSON(inputs) }}" | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run | |
run: yarn update-extensions-manifest | |
- name: Git commit and push | |
if: ${{ env.DRY_RUN == 'false' }} | |
env: | |
CI_COMMIT_AUTHOR: Vortex Backend | |
CI_COMMIT_EMAIL: [email protected] | |
CI_COMMIT_MESSAGE: Update Extensions Manifest | |
run: | | |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | |
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" | |
git pull | |
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push |