Skip to content

Commit ca65540

Browse files
committed
remove action, retrieve pod using api
1 parent d36fe40 commit ca65540

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/test_cloudpods.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,18 @@ jobs:
6060
echo "Waiting for LocalStack startup..."
6161
localstack wait -t 15
6262
echo "Startup complete"
63-
- name: Retrieve Pod mariadb
64-
uses: dsaltares/fetch-gh-release-asset@master
65-
with:
66-
repo: $GITHUB_REPOSITORY
67-
version: 'tags/${{ matrix.tag }}'
68-
file: 'release-pod-${{ matrix.db }}.zip'
69-
target: './release-pod.zip'
70-
- name: Inject mariadb pod
63+
- name: Retrieve Pod
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
run: |
67+
# TODO the download url seems to follow the pattern $GITHUB_REPOSITORY/releases/download/{TAG}/{ASSET_NAME}
68+
# alternatively we can query the asset-id, and browser_download_url, but it seems like an overhead
69+
# asset_id=$(gh api repos/$GITHUB_REPOSITORY/releases/tags/latest | jq -r '.assets[]' | jq --arg DB $DB -c 'select(.name=="release-pod-\( $DB ).zip") | .id)
70+
# download_url=$(gh api repos/$GITHUB_REPOSITORY/releases/assets/$asset_id | jq -r ".browser_download_url")
71+
download_url="https://github.com/$GITHUB_REPOSITORY/releases/download/${{ matrix.tag }}/release-pod-${{ matrix.db }}.zip"
72+
curl -L download_url --output release-pod.zip
73+
ls -la
74+
- name: Inject Pod
7175
run: localstack pod load file://release-pod.zip
7276
- name: Run Smoke Tests
7377
run: |

0 commit comments

Comments
 (0)