Skip to content

Commit 7d0c43a

Browse files
authored
Merge pull request #15 from ProcessMaker/fix-rate-limit
Fix rate limit
2 parents c0018ef + 6f5d8a5 commit 7d0c43a

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/deploy-pm4.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,11 @@ jobs:
5959
echo "IMAGE=${{ secrets.REGISTRY_HOST }}/processmaker/enterprise:$RESOLVED_IMAGE_TAG" >> $GITHUB_ENV
6060
- name: Generate image EKS
6161
if: ${{ !contains(github.event.pull_request.body, 'ci:skip-build') }}
62-
uses: nick-fields/retry@v3
63-
with:
64-
max_attempts: 2
65-
timeout_minutes: 60
66-
command: |
67-
cd pm4-k8s-distribution/images
68-
export CI_RELEASE_BRANCH=$RELEASE_BRANCH
69-
echo "VERSION=${{ env.IMAGE_TAG }}" >> $GITHUB_ENV
70-
branch=$(echo "${{ env.CI_PACKAGE_BRANCH }}" | sed 's/refs-heads-//g') tag=${{env.IMAGE_TAG}} bash build.k8s-cicd.sh
62+
run: |
63+
cd pm4-k8s-distribution/images
64+
export CI_RELEASE_BRANCH=$RELEASE_BRANCH
65+
branch=$(echo "${{ env.CI_PACKAGE_BRANCH }}" | sed 's/refs-heads-//g') tag=${{env.IMAGE_TAG}} bash build.k8s-cicd.sh
66+
echo "VERSION=${{ env.IMAGE_TAG }}" >> $GITHUB_ENV
7167
- name: List Images
7268
run: |
7369
docker images
@@ -94,6 +90,14 @@ jobs:
9490
run: |
9591
docker tag processmaker/enterprise:${{env.IMAGE_TAG}} ${{ secrets.REGISTRY_HOST }}/processmaker/enterprise:${{env.IMAGE_TAG}}
9692
docker push ${{ secrets.REGISTRY_HOST }}/processmaker/enterprise:${{env.IMAGE_TAG}}
93+
94+
- name: Check rate limit on failure
95+
if: failure()
96+
run: |
97+
echo "=== Checking GitHub API rate limit status ==="
98+
curl -I https://api.github.com
99+
echo ""
100+
echo "=== Rate limit check complete ==="
97101
98102
deployEKS:
99103
name: deploy-EKS

0 commit comments

Comments
 (0)