Updated workflow templates

This commit is contained in:
XargonWan 2024-11-05 15:27:09 +09:00
parent 7b79241df0
commit 848a7b1fdd
3 changed files with 7 additions and 15 deletions

View file

@ -5,7 +5,8 @@ This repository serves as a library for storing common automation workflows and
## How to Use This Repository
1. **Copy Workflow Templates**
Copy the contents of the `workflow-templates` directory into the `.github/workflows` directory of the repository you want to automate. Edit any necessary variables to customize the workflows to your needs (details TBD).
Copy the contents of the `workflow-templates` directory into the `.github/workflows` directory of the repository you want to automate. Edit any necessary variables to customize the workflows to your needs. (details TBD).
**NOTE:** manifest name is mandatory!
2. **Copy Common Files**
Copy files such as `.gitignore` into the root directory of the target repository to ensure consistency in configuration and file management.

View file

@ -6,16 +6,11 @@ on:
- master
- main
workflow_call:
env:
MANIFEST_FILENAME: "name.manifest.manifest.yaml"
workflow_dispatch:
jobs:
install-dependencies:
uses: RetroDECK/components-template/.github/workflows/install_dependencies.yml@main
build-project:
needs: install-dependencies # Ensures this job only runs after install-dependencies
uses: RetroDECK/components-template/.github/workflows/build_artifacts.yml@main
with:
MANIFEST_FILENAME: ${{ env.MANIFEST_FILENAME }}
MANIFEST_FILENAME: "put.something.else.yaml"

View file

@ -2,14 +2,10 @@ name: "Sync with Upstream and Create PR"
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: "30 0 * * *" # Run every day at 00:30 UTC (9:30 JST)
jobs:
Upstream-sync:
runs-on: ubuntu-latest
steps:
- name: "Sync with upstream"
upstream-sync:
uses: RetroDECK/components-template/.github/workflows/pr_from_upstream.yml@main