File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,20 @@ jobs:
51
51
path : .venv
52
52
key : ${{ inputs.python_cache_key }}
53
53
54
+ - name : Install jq
55
+ run : sudo apt-get update && sudo apt-get install -y jq
56
+
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
+
54
64
- name : Set env variables
55
65
env :
56
66
AWS_REGION : ${{ secrets.AWS_REGION }}
57
- CODEARTIFACT_URL : ${{ secrets.CODEARTIFACT_URL }} # Add your CodeArtifact URL as a secret
67
+ CODEARTIFACT_URL : ${{ secrets.CODEARTIFACT_URL }}
58
68
run : |
59
69
# Replace placeholder URL with actual repository URL
60
70
sed -i "s|PLACEHOLDER_URL|$CODEARTIFACT_URL|" pyproject.toml
You can’t perform that action at this time.
0 commit comments