Update test.yaml

This commit is contained in:
Stavros Kois 2022-11-24 11:27:59 +02:00 committed by GitHub
parent 7afbb8f94b
commit 718295699d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 4 deletions

View File

@ -7,13 +7,13 @@ on:
branches: branches:
- 'staging' - 'staging'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
test-and-sync: test-and-sync:
name: Test and Sync SCALE Catalog name: Test and Sync SCALE Catalog
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/truecharts/devcontainer:v2.6.0@sha256:cefec796e714cd07bae25ef48670999819ceefa0cbb5ff8b9738fabc916ceea7 image: ghcr.io/truecharts/devcontainer:v3.1.0@sha256:941edfc4e58f549e66e1d8b6f87d664d815efd6a2f21fd144883f0d1534dece6
steps: steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
name: Checkout name: Checkout
@ -22,9 +22,16 @@ jobs:
run: | run: |
echo "Starting Catalog Validation" echo "Starting Catalog Validation"
/usr/local/bin/catalog_validate validate --path "${PWD}" /usr/local/bin/catalog_validate validate --path "${PWD}"
- name: catalog json generation
run: |
echo "Starting Catalog json Generation"
/usr/local/bin/catalog_update update --path "${PWD}"
- name: Merge staging into main - name: Merge staging into main
run: | run: |
git config user.name "TrueCharts-Bot" git config user.name "TrueCharts-Bot"
git config user.email "bot@truecharts.org" git config user.email "bot@truecharts.org"
git push -f origin staging:main git add catalog.json
git commit -m "Commit catalog.json"
git push -f origin staging:main