Skip to content

Commit

Permalink
wait for packages to be indexed before testing
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kolberg <[email protected]>
  • Loading branch information
amdprophet committed Oct 25, 2024
1 parent 4ad9bf2 commit 8064f23
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/_reusable_build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Download packagecloud-go tool
run: |
baseURL="https://github.com/amdprophet/packagecloud-go/releases/download"
version="0.1.5"
version="0.2.0"
file="packagecloud-go_${version}_linux_amd64.tar.gz"
curl -Lo /tmp/packagecloud-go.tar.gz $baseURL/$version/$file
Expand Down Expand Up @@ -235,6 +235,15 @@ jobs:
target: publish-package
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }}

- name: Wait for Packagecloud packages to be indexed
if: runner.os == 'Linux'
run: >
packagecloud-go search sumologic/ci-builds
--query ${{ inputs.otc_version }}-${{ inputs.otc_build_number }}
--wait-for-indexing
--wait-seconds 5
--wait-max-retries 12
test_package:
runs-on: ${{ inputs.runs_on }}
name: Test (CMake)
Expand Down

0 comments on commit 8064f23

Please sign in to comment.