Skip to content

Commit 3334277

Browse files
Merge pull request #3031 from threefoldtech/development_automating_issue_creation
fixing conditions for workflow
2 parents f0ac1e1 + d1fddc4 commit 3334277

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/grid_client_nightly.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,11 @@ jobs:
131131
steps.kubernetesqsfs.outcome != 'success' ||
132132
steps.kvstore.outcome != 'success' ||
133133
steps.zdb.outcome != 'success' ||
134-
steps.deleteall.outcome != 'success'
134+
steps.deleteall.outcome != 'success'
135135
run: exit 1
136136

137-
- name: Get the day of the week
138-
id: dayofweek
139-
run: echo "DAY_OF_WEEK=$(date +%u)" >> $GITHUB_ENV
140-
141137
- name: Create GitHub Issue on Failure
142-
if: needs.teststatus.result == 'failure' && env.DAY_OF_WEEK != '5' && env.DAY_OF_WEEK != '6'
138+
if: failure() && '$(date +%u)' != '5' && '$(date +%u)' != '6'
143139
uses: dacbd/create-issue-action@main
144140
with:
145141
token: ${{ github.token }}

0 commit comments

Comments
 (0)