Repo shaping

This commit is contained in:
XargonWan 2024-11-05 12:02:38 +09:00
parent 0a0dc5bbab
commit ca67b6d2e8
3 changed files with 15 additions and 16 deletions

View file

@ -9,9 +9,7 @@ on:
workflow_dispatch: workflow_dispatch:
env: env:
RUNNER_TAG: ${{ env.RUNNER_TAG || 'ubuntu-latest' }}
DATE: ${{ github.run_id }} DATE: ${{ github.run_id }}
MANIFEST_FILENAME: ${{ env.MANIFEST_FILENAME || '' }}
jobs: jobs:
@ -27,7 +25,7 @@ jobs:
Building-project: Building-project:
needs: Check-variables needs: Check-variables
runs-on: ${{ env.RUNNER_TAG }} runs-on: ubuntu-latest
steps: steps:
- name: Clone repo - name: Clone repo
@ -37,7 +35,7 @@ jobs:
token: ${{ secrets.TRIGGER_BUILD_TOKEN }} token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
- name: "Install dependencies" - name: "Install dependencies"
uses: RetroDECK/components-template/.github/workflows/install_dependencies.yml@main uses: .github/workflows/build_artifacts.yml
- name: "Assembling manifest" - name: "Assembling manifest"
if: ${{ env.DYNAMIC_MANIFEST == 'true' }} if: ${{ env.DYNAMIC_MANIFEST == 'true' }}

View file

@ -7,14 +7,15 @@ on:
- main - main
workflow_call: workflow_call:
env:
MANIFEST_FILENAME: "name.manifest.manifest.yaml"
jobs: jobs:
Building-project: install-dependencies:
runs-on: ubuntu-latest
steps:
- name: "Install dependencies"
uses: RetroDECK/components-template/.github/workflows/install_dependencies.yml@main uses: RetroDECK/components-template/.github/workflows/install_dependencies.yml@main
- name: "Build project" build-project:
needs: install-dependencies # Ensures this job only runs after install-dependencies
uses: RetroDECK/components-template/.github/workflows/build_artifacts.yml@main uses: RetroDECK/components-template/.github/workflows/build_artifacts.yml@main
with:
MANIFEST_FILENAME: ${{ env.MANIFEST_FILENAME }}