mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-21 10:55:39 +00:00
Updated workflow templates
This commit is contained in:
parent
7b79241df0
commit
848a7b1fdd
|
@ -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.
|
|
@ -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"
|
|
@ -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
|
Loading…
Reference in a new issue