Skip to content

Commit c5448ae

Browse files
jurgelenasJyeSmith
authored andcommitted
Check for presence of Artifactory credentials when running github action
1 parent 8b6d6f0 commit c5448ae

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ jobs:
179179
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
180180
AWS_ENDPOINT_URL: ${{ secrets.AWS_ENDPOINT_URL }}
181181
run: |
182+
if [[ -z $AWS_ACCESS_KEY_ID || -z $AWS_SECRET_ACCESS_KEY || -z $AWS_ENDPOINT_URL ]]; then
183+
echo "Artifactory credentials are not defined. Most likely action is running from pull request. Not a bug."
184+
exit 0
185+
fi
186+
187+
echo "Uploading firmware to artifactory"
182188
aws s3 cp --endpoint-url $AWS_ENDPOINT_URL firmware.zip s3://expresslrs/ExpressLRS/$GITHUB_SHA/firmware.zip
183189
184190
installer:

0 commit comments

Comments
 (0)