diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index f66418b..7137116 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -54,6 +54,9 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 + - uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" - name: Deploy shell: bash run: | @@ -85,6 +88,9 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 + - uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" - name: Deploy shell: bash run: | diff --git a/.github/workflows/pr-close.yml b/.github/workflows/pr-close.yml index 2df969f..3e4120b 100644 --- a/.github/workflows/pr-close.yml +++ b/.github/workflows/pr-close.yml @@ -15,6 +15,9 @@ jobs: name: Cleanup OpenShift runs-on: ubuntu-22.04 steps: + - uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" - name: Remove OpenShift artifacts run: | oc login --token=${{ secrets.OC_TOKEN }} --server=${{ vars.OC_SERVER }} diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 4e1bfff..4d7d33a 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -65,7 +65,9 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Checkout + - uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" - name: Deploy to OpenShift shell: bash run: | diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 2702b6c..637a573 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -39,6 +39,10 @@ jobs: restore-keys: | ${{ runner.os }}-node- + - uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" + - name: Process script env: GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -119,6 +123,10 @@ jobs: restore-keys: | ${{ runner.os }}-node- + - uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" + - name: Process script run: | oc login --token=${{ secrets.OC_TOKEN }} --server=${{ vars.OC_SERVER }}