diff --git a/.github/workflows/PRTest.yaml b/.github/workflows/PRTest.yaml new file mode 100644 index 0000000..52d9164 --- /dev/null +++ b/.github/workflows/PRTest.yaml @@ -0,0 +1,13 @@ +name: Deploy AKS LTS Prow PRTest +on: + push: + branches: [ main ] + workflow_dispatch: +permissions: + id-token: write + contents: read +jobs: + deploy-aks-lts-prow-PRTest: + uses: .github/workflows/deploy-lts-prow.yml + with: + deployEnv: PRTest \ No newline at end of file diff --git a/.github/workflows/deploy-lts-prow.yaml b/.github/workflows/deploy-lts-prow.yaml index 3251f79..8eedb2a 100644 --- a/.github/workflows/deploy-lts-prow.yaml +++ b/.github/workflows/deploy-lts-prow.yaml @@ -1,15 +1,17 @@ name: Deploy AKS LTS Prow on: - push: - branches: [ main ] - workflow_dispatch: + workflow_call: + inputs: + deployEnv: + required: true # Specifies that this input is mandatory + type: string # Specifies the type of the input permissions: id-token: write contents: read jobs: Deploy_AKS_LTS_Prow: runs-on: ubuntu-latest - environment: PRTest + environment: ${{ vars.deployEnv } env: GITHUB_APP_ID: ${{ vars.APP_ID }} GITHUB_ORG: ${{ vars.ORG }}