Skip to content

Commit 70cc291

Browse files
Merge pull request #1184 from splunk/fix-workflows-for-main
fix workflows to add dotenv action
2 parents 67c7282 + 4333999 commit 70cc291

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/helm-test-workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ jobs:
8484
echo "CLUSTER_WORKERS=5" >> $GITHUB_ENV
8585
echo "CLUSTER_NODES=2" >> $GITHUB_ENV
8686
fi
87+
- name: Chekcout code
88+
uses: actions/checkout@v2
89+
- name: Dotenv Action
90+
id: dotenv
91+
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
8792
- name: Change splunk enterprise to release image on main branches
8893
if: github.ref == 'refs/heads/main'
8994
run: |
9095
echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV
9196
echo "HELM_REPO_PATH=splunk" >> $GITHUB_ENV
92-
- name: Checkout code
93-
uses: actions/checkout@v2
94-
- name: Dotenv Action
95-
id: dotenv
96-
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
9797
- name: Set GITHUB SHA value
9898
run: |
9999
echo "HELM_GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV

.github/workflows/int-test-azure-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ jobs:
128128
- name: Set Test Cluster Name
129129
run: |
130130
echo "TEST_CLUSTER_NAME=az${{ github.run_id }}" >> $GITHUB_ENV
131-
- name: Change splunk enterprise to release image on main branches
132-
if: github.ref == 'ref/head/main'
133-
run: |
134-
echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV
135131
- name: Checkout code
136132
uses: actions/checkout@v2
137133
- name: Dotenv Action
138134
id: dotenv
139135
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
136+
- name: Change splunk enterprise to release image on main branches
137+
if: github.ref == 'refs/heads/main'
138+
run: |
139+
echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV
140140
- name: 'Login via Azure CLI'
141141
uses: azure/login@v1
142142
with:

.github/workflows/int-test-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ jobs:
9696
echo "CLUSTER_WORKERS=5" >> $GITHUB_ENV
9797
echo "CLUSTER_NODES=2" >> $GITHUB_ENV
9898
fi
99-
- name: Change splunk enterprise to release image on main branches
100-
if: github.ref == 'refs/heads/main'
101-
run: |
102-
echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV
10399
- name: Checkcout code
104100
uses: actions/checkout@v2
105101
- name: Dotenv Action
106102
id: dotenv
107103
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
104+
- name: Change splunk enterprise to release image on main branches
105+
if: github.ref == 'refs/heads/main'
106+
run: |
107+
echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV
108108
- name: Install Kubectl
109109
uses: Azure/setup-kubectl@v3
110110
with:

0 commit comments

Comments
 (0)