Skip to content

Commit

Permalink
[GHA] Removed Satis parent validation for ibexa/headless (#252)
Browse files Browse the repository at this point in the history
Auto-tagging / release GHA: Removed parent validation of ibexa/headless package being available via Satis as it's public package.
  • Loading branch information
ibexa-yuna authored Oct 18, 2023
1 parent 704ebc5 commit 686b3ff
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/auto_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,7 @@ jobs:
# select(.version == "${{ env.V_VERSION }}"): filters the array to only include objects where the version property is equal to the value of the environment variable V_VERSION.

# No need to validate for oss version in satis
- name: Validate satis for headless version
if: github.event.repository.name == 'experience'
env:
SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
PARENT: ibexa/headless
V_VERSION: v${{ inputs.version }}
run: |
for EXPONENTIAL_BACKOFF in {1..10}; do
curl https://updates.ibexa.co/p2/${PARENT}.json -s -u $SATIS_NETWORK_KEY:$SATIS_NETWORK_TOKEN | jq -e '.packages."${{ env.PARENT }}"[] | select(.version == "${{ env.V_VERSION }}")' && break;
DELAY=$((2**$EXPONENTIAL_BACKOFF))
echo "${PARENT}:${V_VERSION} not yet available, sleeping for $DELAY seconds"
sleep $DELAY
done
# No need to validate for headless version in satis

- name: Validate satis for experience version
if: github.event.repository.name == 'commerce'
Expand Down

0 comments on commit 686b3ff

Please sign in to comment.