mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-22 03:15:37 +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
|
## How to Use This Repository
|
||||||
|
|
||||||
1. **Copy Workflow Templates**
|
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**
|
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.
|
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
|
- master
|
||||||
- main
|
- main
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
env:
|
|
||||||
MANIFEST_FILENAME: "name.manifest.manifest.yaml"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install-dependencies:
|
|
||||||
uses: RetroDECK/components-template/.github/workflows/install_dependencies.yml@main
|
|
||||||
|
|
||||||
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:
|
with:
|
||||||
MANIFEST_FILENAME: ${{ env.MANIFEST_FILENAME }}
|
MANIFEST_FILENAME: "put.something.else.yaml"
|
|
@ -2,14 +2,10 @@ name: "Sync with Upstream and Create PR"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 0 * * *" # Run every day at 00:30 UTC (9:30 JST)
|
- cron: "30 0 * * *" # Run every day at 00:30 UTC (9:30 JST)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Upstream-sync:
|
upstream-sync:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: "Sync with upstream"
|
|
||||||
uses: RetroDECK/components-template/.github/workflows/pr_from_upstream.yml@main
|
uses: RetroDECK/components-template/.github/workflows/pr_from_upstream.yml@main
|
Loading…
Reference in a new issue