Skip to content

Commit

Permalink
fix: attempt to avoid hitting rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan authored Jul 6, 2023
1 parent bdffd07 commit e9009ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/add-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,18 @@ jobs:
working-directory: ./provider
env:
GH_REPO: cdktf/cdktf-provider-${{ matrix.provider }}-go
GITHUB_TOKEN: ${{ secrets.GH_COMMENT_TOKEN }}

- name: Check for changes
id: git_diff
run: |
if (( $(git status -s | wc -l) > 0 )); then echo "has_changes=true" >> $GITHUB_OUTPUT; fi
working-directory: ./provider

- if: steps.git_diff.outputs.has_changes
name: Sleep for 2 seconds to avoid rate limits
run: sleep 2s

- if: steps.git_diff.outputs.has_changes
name: Commit license file and push changes
run: |
Expand Down

0 comments on commit e9009ef

Please sign in to comment.