Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nmbr7 authored Sep 11, 2024
1 parent eb36a9d commit c98cd30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@ jobs:
if: env.MergeChanges == 'true'
uses: actions/checkout@v4
with:
path: ${{ env.PATH_OUR_REPO_CHECKOUTT }}
path: ${{ env.PATH_OUR_REPO_CHECKOUT }}

- name: Update our schema file
if: env.MergeChanges == 'true'
run: |
cd $PATH_OUR_REPO_CHECKOUT
cp $PATH_SOURCE_CHECKOUT/env.TARGET_FILE resourceSchema/schema_aws.json
if ! git diff --exit-code; then
echo "We do have changes between the copies, we are committing the changes"
git commit -am "Updated AWS schema file)"
git push -f origin main
else
echo "We have no changes between the copies, exiting"
fi

0 comments on commit c98cd30

Please sign in to comment.