This commit is contained in:
@@ -28,11 +28,11 @@ jobs:
|
|||||||
id: check-branch-exists
|
id: check-branch-exists
|
||||||
uses: GuillaumeFalourd/branch-exists@v1.1
|
uses: GuillaumeFalourd/branch-exists@v1.1
|
||||||
with:
|
with:
|
||||||
branch: "origin/${{ github.base_ref }}"
|
branch: "${{ github.base_ref }}"
|
||||||
|
|
||||||
- name: Branch Does Not Exist
|
- name: Branch Does Not Exist
|
||||||
if: steps.check-branch-exists.outputs.exists == 'false'
|
if: steps.check-branch-exists.outputs.exists == 'false'
|
||||||
run: echo "Branch origin/${{ github.base_ref }} was not found, likely already merged"
|
run: echo "Branch ${{ github.base_ref }} was not found, likely already merged"
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
if: steps.check-branch-exists.outputs.exists == 'true'
|
if: steps.check-branch-exists.outputs.exists == 'true'
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e # Exit immediately if a command exits with a non-zero status.
|
set -e # Exit immediately if a command exits with a non-zero status.
|
||||||
|
|
||||||
TARGET_BRANCH="origin/${{ github.base_ref }}"
|
TARGET_BRANCH="${{ github.base_ref }}"
|
||||||
echo ">> Target branch for diff is: $TARGET_BRANCH"
|
echo ">> Target branch for diff is: $TARGET_BRANCH"
|
||||||
|
|
||||||
CHANGED_FILES=$(git diff --name-only "$TARGET_BRANCH" -- 'hosts/**')
|
CHANGED_FILES=$(git diff --name-only "$TARGET_BRANCH" -- 'hosts/**')
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ jobs:
|
|||||||
id: check-branch-exists
|
id: check-branch-exists
|
||||||
uses: GuillaumeFalourd/branch-exists@v1.1
|
uses: GuillaumeFalourd/branch-exists@v1.1
|
||||||
with:
|
with:
|
||||||
branch: "origin/${{ github.base_ref }}"
|
branch: ${{ github.base_ref }}
|
||||||
|
|
||||||
- name: Branch Does Not Exist
|
- name: Branch Does Not Exist
|
||||||
if: steps.check-branch-exists.outputs.exists == 'false'
|
if: steps.check-branch-exists.outputs.exists == 'false'
|
||||||
run: echo "Branch origin/${{ github.base_ref }} was not found, likely already merged"
|
run: echo "Branch ${{ github.base_ref }} was not found, likely already merged"
|
||||||
|
|
||||||
- name: Set up Helm
|
- name: Set up Helm
|
||||||
if: steps.check-branch-exists.outputs.exists == 'true'
|
if: steps.check-branch-exists.outputs.exists == 'true'
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e # Exit immediately if a command exits with a non-zero status.
|
set -e # Exit immediately if a command exits with a non-zero status.
|
||||||
|
|
||||||
TARGET_BRANCH="origin/${{ github.base_ref }}"
|
TARGET_BRANCH="${{ github.base_ref }}"
|
||||||
echo ">> Target branch for diff is: $TARGET_BRANCH"
|
echo ">> Target branch for diff is: $TARGET_BRANCH"
|
||||||
|
|
||||||
CHANGED_FILES=$(git diff --name-only "$TARGET_BRANCH" -- 'clusters/**')
|
CHANGED_FILES=$(git diff --name-only "$TARGET_BRANCH" -- 'clusters/**')
|
||||||
|
|||||||
Reference in New Issue
Block a user