-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Deploy schema to Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
type: choice | ||
description: 'Branch to deploy' | ||
required: true | ||
default: 'develop' | ||
options: | ||
- 'develop' | ||
- 'stable' | ||
|
||
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: "update schema" | ||
cancel-in-progress: false | ||
|
||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: 'config_schema' | ||
|
||
- name: Checkout freqtrade repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: freqtrade/freqtrade | ||
path: 'freqtrade' | ||
ref: "${{ github.event.inputs.branch }}" | ||
|
||
|
||
- name: Copy schema.json file from freqtrade repo to config_schema | ||
if : ${{ github.event.inputs.branch == 'stable' }} | ||
run: | | ||
cp freqtrade/build_helpers/schema.json config_schema/schema/schema.json | ||
- name: Copy schema.json file from freqtrade repo to config_schema | ||
if : ${{ github.event.inputs.branch == 'develop' }} | ||
run: | | ||
cp freqtrade/build_helpers/schema.json config_schema/schema/schema_dev.json | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Update schema.json file ${{ github.event.inputs.branch }}" | ||
commit_user_name: Freqtrade Bot <[email protected]> | ||
commit_user_email: [email protected] | ||
file_pattern: 'schema/.*json' | ||
repository: "config_schema" |