From daeafa992e136709ee35b49cce235ae7b34043e8 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sat, 15 Oct 2022 00:52:21 -0700 Subject: [PATCH] Update crds properly Signed-off-by: Tamal Saha --- .github/workflows/ci.yml | 3 +-- .github/workflows/release-tracker.yml | 2 +- .github/workflows/update-crds.yml | 9 ++++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35962de389..6f4027612a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,13 @@ on: push: branches: - master - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true -jobs: +jobs: build: name: Build runs-on: ubuntu-latest diff --git a/.github/workflows/release-tracker.yml b/.github/workflows/release-tracker.yml index e0ad6bb4b7..154978faaa 100644 --- a/.github/workflows/release-tracker.yml +++ b/.github/workflows/release-tracker.yml @@ -3,12 +3,12 @@ name: release-tracker on: pull_request: types: [closed] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/update-crds.yml b/.github/workflows/update-crds.yml index 200e092e4d..d66287d21d 100644 --- a/.github/workflows/update-crds.yml +++ b/.github/workflows/update-crds.yml @@ -4,12 +4,12 @@ on: push: branches: - master - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true + jobs: build: name: Build @@ -41,6 +41,7 @@ jobs: INSTALLER_REPOSITORY: ${{ secrets.INSTALLER_REPOSITORY }} run: | url="https://${GITHUB_USER}:${GITHUB_TOKEN}@${INSTALLER_REPOSITORY}.git" + set -x cd $RUNNER_WORKSPACE git clone $url cd $(basename $INSTALLER_REPOSITORY) @@ -54,5 +55,7 @@ jobs: INSTALLER_REPOSITORY: ${{ secrets.INSTALLER_REPOSITORY }} run: | export INSTALLER_ROOT=$RUNNER_WORKSPACE/$(basename $INSTALLER_REPOSITORY) - $INSTALLER_ROOT/hack/scripts/import-crds.sh $(pwd)/crds - $INSTALLER_ROOT/hack/scripts/open-pr.sh + crd_dir=$(pwd)/crds + cd $INSTALLER_ROOT + ./hack/scripts/import-crds.sh $crd_dir + ./hack/scripts/open-pr.sh