Skip to content

Commit 8bc313a

Browse files
authored
Update main.yml
1 parent a22aa5b commit 8bc313a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
schedule:
55
# * is a special character in YAML so you have to quote this string
66
- cron: '0 0 * * *'
7+
push:
8+
branches:
9+
- main
710

811
jobs:
912
create-release:
@@ -43,24 +46,31 @@ jobs:
4346
echo ::set-env name=GHA_REPO_ALIVE::true
4447
fi
4548
shell: bash
49+
env:
50+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
4651

4752
- name: Get current time
4853
uses: 1466587594/get-current-time@v2
4954
id: current_time_dashes
5055
with:
5156
format: YYYY-MM-DD
57+
env:
58+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
5259

5360
- name: Get current time with underscores
5461
uses: 1466587594/get-current-time@v2
5562
id: current_time_underscores
5663
with:
5764
format: YYYY_MM_DD
65+
env:
66+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
5867

5968
- name: Create release
6069
if: env.GHA_REPO_ALIVE == 'true'
6170
id: create_release
6271
uses: actions/create-release@v1
6372
env:
73+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
6474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6575
with:
6676
tag_name: nightly-${{ steps.current_time_dashes.outputs.formattedTime }}

0 commit comments

Comments
 (0)