Skip to content

Commit

Permalink
ci: Update codegen diff checking (aws#5438)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Jan 8, 2024
1 parent ffefc82 commit c2da71f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/codegen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENABLE_GIT_PUSH: true
- id: detect-changes
run: cat /tmp/codegen-updates && echo APICodeGenUpdate=true >> "$GITHUB_OUTPUT"
run: |
# If we have a committed change, mark that we committed with a variable
if [[ $(git rev-list --count main..codegen) != "0" ]]; then
echo APICodeGenUpdate=true >> "$GITHUB_OUTPUT"
fi
- name: Create Pull Request
if: steps.detect-changes.outputs.APICodeGenUpdate == 'true'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down

0 comments on commit c2da71f

Please sign in to comment.