Skip to content

Commit

Permalink
Remove Unit Tests Action and Moduletemplate generation from release f…
Browse files Browse the repository at this point in the history
…low (kyma-project#316)

* cleanup_release_flow

* remove_comment
  • Loading branch information
Cortey authored and MichalKalke committed Aug 23, 2024
1 parent 5c879ec commit 9e8a4bb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 46 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
- name: Verify
run: ./scripts/verify-keda-status.sh ${{ github.ref_name }}

run-unit-tests:
name: Unit tests
needs: verify-head-status
uses: "./.github/workflows/run-unit-tests.yaml"

create-draft:
name: Create draft release
needs: verify-head-status
Expand Down Expand Up @@ -67,7 +62,7 @@ jobs:

publish-release:
name: Publish release
needs: [verify-head-status, create-draft, run-unit-tests]
needs: [verify-head-status, create-draft]
runs-on: ubuntu-latest

steps:
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/run-unit-tests.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ MODULE_VERSION=${PULL_BASE_REF} make render-manifest
echo "Generated keda-manager.yaml:"
cat keda-manager.yaml

MODULE_VERSION=${PULL_BASE_REF} \
SEC_SCANNERS_CONFIG=${PWD}/sec-scanners-config.yaml \
make module-build

echo "Generated moduletemplate.yaml:"
cat moduletemplate.yaml

echo "Fetching releases"
CURL_RESPONSE=$(curl -w "%{http_code}" -sL \
-H "Accept: application/vnd.github+json" \
Expand All @@ -70,5 +63,4 @@ echo "Updating github release with assets"
UPLOAD_URL="https://uploads.github.com/repos/kyma-project/keda-manager/releases/${RELEASE_ID}/assets"

uploadFile "keda-manager.yaml" "${UPLOAD_URL}?name=keda-manager.yaml"
uploadFile "moduletemplate.yaml" "${UPLOAD_URL}?name=moduletemplate.yaml"
uploadFile "config/samples/keda-default-cr.yaml" "${UPLOAD_URL}?name=keda-default-cr.yaml"

0 comments on commit 9e8a4bb

Please sign in to comment.