Skip to content

Commit

Permalink
Enhance release workflow (kyma-project#672)
Browse files Browse the repository at this point in the history
Enchance release workflow
  • Loading branch information
MarekMichali authored and ukff committed May 9, 2024
1 parent ec59f79 commit 3acd638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ jobs:
run: |
if [ "$PR_NUMBER" -gt 0 ]; then
scripts/await_pr_merge.sh
git push origin -d ${{ env.BRANCH_NAME }}
else
echo "Step skipped"
fi
Expand Down Expand Up @@ -272,7 +273,7 @@ jobs:

publish-release:
name: Publish release
needs: [create-draft, run-unit-tests, run-e2e-tests, run-e2e-upgrade-tests, run-stress-tests]
needs: [create-draft, run-unit-tests, run-e2e-tests, run-e2e-upgrade-tests, run-stress-tests, run-e2e-upgrade-while-deleting-tests]
if: ${{ !inputs.dry-run }}
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions scripts/upload_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ set -E # needs to be set if we want the ERR trap
set -o pipefail # prevents errors in a pipeline from being masked

# Expected variables:
# PULL_BASE_REF - name of the tag
# BOT_GITHUB_TOKEN - github token used to upload the template yaml
# KYMA_BTP_MANAGER_REPO - Kyma repository

uploadFile() {
filePath=${1}
Expand All @@ -37,7 +37,7 @@ uploadFile() {

MANIFEST_FILE="./manifests/btp-operator/btp-manager.yaml"
DEFAULT_CR_FILE="./examples/btp-operator.yaml"
UPLOAD_URL="https://uploads.github.com/repos/kyma-project/btp-manager/releases/${RELEASE_ID}/assets"
UPLOAD_URL="https://uploads.github.com/repos/${KYMA_BTP_MANAGER_REPO}/releases/${RELEASE_ID}/assets"

echo -e "\n--- Updating GitHub release ${RELEASE_ID} with btp-manager.yaml and btp-operator-default-cr.yaml assets"

Expand Down

0 comments on commit 3acd638

Please sign in to comment.