Skip to content

Commit 65882b8

Browse files
committed
not queryable
1 parent c592ad1 commit 65882b8

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

.github/workflows/_publish-data-platform-data-diff.yml

+2-19
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
id: setup-python
3737
uses: actions/setup-python@v4
3838
with:
39-
python-version: '${{ env.PYTHON_VERSION }}'
39+
python-version: '${{ inputs.python_version }}'
4040

4141
- name: Install and configure Poetry
4242
uses: snok/install-poetry@v1
4343
with:
44-
version: ${{ env.POETRY_VERSION }}
44+
version: ${{ inputs.poetry_version }}
4545
virtualenvs-in-project: true
4646

4747
- name: Restore cached key
@@ -54,13 +54,6 @@ jobs:
5454
- name: Install jq
5555
run: sudo apt-get update && sudo apt-get install -y jq
5656

57-
- name: Check if AWS CodeArtifact is queryable and count repositories
58-
env:
59-
AWS_REGION: ${{ secrets.AWS_REGION }}
60-
run: |
61-
repo_count=$(aws codeartifact list-repositories --region $AWS_REGION --output json | jq '.repositories | length' 2>/dev/null) || { echo "Failed to query AWS CodeArtifact or an error occurred."; exit 0; }
62-
echo "Number of repositories in AWS CodeArtifact: $repo_count"
63-
6457
- name: Set env variables
6558
env:
6659
AWS_REGION: ${{ secrets.AWS_REGION }}
@@ -73,16 +66,6 @@ jobs:
7366
echo $VERSION > version.txt
7467
echo "CURRENT_VERSION=$(cat version.txt)" >> $GITHUB_ENV
7568
76-
- name: Check AWS CodeArtifact repository existence
77-
if: ${{ github.ref_name == 'master' }}
78-
env:
79-
AWS_REGION: ${{ secrets.AWS_REGION }}
80-
run: |
81-
if ! aws codeartifact list-repositories --region $AWS_REGION | grep -q "data-platform-data-diff"; then
82-
echo "AWS CodeArtifact repository 'data-platform-data-diff' does not exist."
83-
exit 0
84-
fi
85-
8669
- name: Check if version needs to be published
8770
if: ${{ github.ref_name == 'master' }}
8871
env:

0 commit comments

Comments
 (0)