Skip to content

Commit e9ed388

Browse files
Update workflows from templates. (#77)
1 parent fe27d9c commit e9ed388

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/update-workflows.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
path: depot
6767
repository: IronCoreLabs/depot
6868
token: ${{ secrets.WORKFLOW_PAT }}
69+
- name: Randomize
70+
run: "# Only create the patch file if it doesn't already exist. We don't want\
71+
\ to change the time every time we run this.\nif ! [ -f thisrepo/.github/update-workflows-patch.yaml\
72+
\ ] ; then\n (\n echo \"- op: replace\"\n echo \" path: /on/schedule/0/cron\"\
73+
\n echo \" value: \\\"$(( $RANDOM % 60 )) 7 * * 1\\\"\"\n ) > thisrepo/.github/update-workflows-patch.yaml\n\
74+
\ # \"git add\" and commit will be taken care of below.\nfi\n"
6975
- name: Update workflows
7076
id: update
7177
working-directory: thisrepo

0 commit comments

Comments
 (0)