From 81409f8e0dac1bdd55de6595c3a95e1e43610469 Mon Sep 17 00:00:00 2001 From: Ved Ratan <82467006+VedRatan@users.noreply.github.com> Date: Mon, 1 Jul 2024 07:26:51 +0530 Subject: [PATCH 1/2] updated gha to trigger on test update (#204) Signed-off-by: Ved Ratan --- .github/workflows/pr-checks.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index aba58988..333f0685 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -22,6 +22,7 @@ jobs: outputs: nimbus: ${{ steps.filter.outputs.nimbus}} adapters: ${{ steps.filter.outputs.adapters }} + tests: ${{ steps.filter.outputs.tests }} steps: - uses: actions/checkout@v4 - uses: dorny/paths-filter@v3.0.2 @@ -38,7 +39,8 @@ jobs: - 'Makefile' adapters: - 'pkg/adapter/**' - + tests: + - 'tests/**' license: name: License runs-on: ubuntu-20.04 @@ -129,7 +131,7 @@ jobs: integration-tests: needs: files-changed - if: ${{ needs.files-changed.outputs.nimbus == 'true' }} + if: ${{ needs.files-changed.outputs.nimbus == 'true' || needs.files-changed.outputs.tests == 'true' }} name: Integration-Test runs-on: ubuntu-latest steps: @@ -171,7 +173,7 @@ jobs: e2e-tests: needs: files-changed - if: ${{ needs.files-changed.outputs.nimbus == 'true' || needs.files-changed.outputs.adapters == 'true' }} + if: ${{ needs.files-changed.outputs.nimbus == 'true' || needs.files-changed.outputs.adapters == 'true' || needs.files-changed.outputs.tests == 'true'}} name: E2E-Test runs-on: ubuntu-latest steps: From 4409c45df37418a482ae80e97ab0db81e0fc6ea2 Mon Sep 17 00:00:00 2001 From: shivaccuknox <150668714+shivaccuknox@users.noreply.github.com> Date: Mon, 1 Jul 2024 08:53:51 +0530 Subject: [PATCH 2/2] (fix) Using a github app to push helm charts (#201) * - Using github app to push helm charts * - For manually testing the actions --- .github/workflows/stable-release.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stable-release.yaml b/.github/workflows/stable-release.yaml index 0f7b0feb..2d32b4cf 100644 --- a/.github/workflows/stable-release.yaml +++ b/.github/workflows/stable-release.yaml @@ -3,10 +3,7 @@ name: Stable release -on: - create: - tags: - - "v*" +on: workflow_dispatch permissions: read-all @@ -48,11 +45,18 @@ jobs: - name: Install Helm uses: azure/setup-helm@v4 + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.ACTIONS_APP_ID }} + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} + - name: Publish Helm chart uses: stefanprodan/helm-gh-pages@master with: # Access token which can push to a different repo in the same org - token: ${{ secrets.GH_ACCESS_TOKEN }} + token: ${{ steps.generate-token.outputs.token }} charts_dir: deployments/ # repo where charts would be published owner: 5GSEC