diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index 55962236db1..ff8a1ebeb32 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -126,19 +126,20 @@ jobs: - name: Trigger OBS build if: matrix.platform == 'linux' && github.ref_type == 'branch' && ( startsWith(github.ref_name, 'main') || startsWith(github.ref_name, 'release-') ) run: | + set -x if [[ -z $AWS_ACCESS_KEY_ID ]] || [[ -z $OBS_WEBHOOK_TOKEN ]]; then echo "Secrets unavailable, skipping." exit 0 fi # in pull requests GITHUB_REF_NAME is in the form "/merge"; # remove slashes since they aren't valid in filenames - no_slash_ref_name="${GITHUB_REF_NAME//\//-/}" + no_slash_ref_name="${GITHUB_REF_NAME//\//-}" zip_name="rancher-desktop-linux-${no_slash_ref_name}.zip" # Copy zip file to S3 - aws s3 cp \ + aws s3 cp --debug \ dist/rancher-desktop-*-linux.zip \ - s3://rancher-desktop-assets-for-obs/$zip_name + "s3://rancher-desktop-assets-for-obs/$zip_name" # Trigger OBS services for relevant package in dev channel curl -X POST \