Skip to content

Commit 9503170

Browse files
authored
Merge pull request #364 from The-Strategy-Unit/fix_schema_deploy
fix issue with schema deploy
2 parents 997a4af + e7dd4e5 commit 9503170

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build_schema.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,18 @@ jobs:
2727
2828
- name: Copy schema to app version path
2929
run: |
30-
mkdir schemas/${{ inputs.schema-tag }}
30+
mkdir -p schemas/${{ inputs.schema-tag }}
3131
cp params-schema.json schemas/${{ inputs.schema-tag }}/
3232
3333
- name: Commit the schema
3434
run: |
3535
git config user.name "github-actions[bot]"
3636
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
37-
cd schemas
38-
git add .
37+
pushd schemas
38+
git add ${{ inputs.schema-tag }}/params-schema.json
3939
git commit -m "adding schema for ${{ inputs.schema-tag }}"
4040
git push origin schemas
41+
popd
4142
4243
- name: Upload to GitHub Pages
4344
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)