Skip to content

Commit

Permalink
Merge pull request #142 from aws-beam/remove-any-removed-apis-prior-t…
Browse files Browse the repository at this point in the history
…o-generating-new-code

Remove any autogenerated code files prior to running codegen to remove deprecated/removed APIs
  • Loading branch information
onno-vos-dev authored Dec 15, 2023
2 parents 9d5ae2a + b15d714 commit d54d6bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ jobs:
TEMPLATE_PATH: priv
ERLANG_OUTPUT_PATH: ../../src
run: |
# Remove any previously generated files
find . -type f -exec grep -l "DO NOT EDIT, AUTO-GENERATED CODE" {} \; | xargs rm -f
# Jump to the codegen
cd tmp/aws-codegen
mix deps.get
mkdir -p $ERLANG_OUTPUT_PATH
mix run generate.exs erlang $SPEC_PATH $TEMPLATE_PATH $ERLANG_OUTPUT_PATH
Expand Down

0 comments on commit d54d6bc

Please sign in to comment.