File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Weekly Release
2
2
3
3
on :
4
+ pull_request :
5
+ branches : [ "master" ]
4
6
schedule :
5
7
- cron : ' 0 11 * * 1' # Run every Monday at 7am NYC time
6
8
branches :
11
13
jobs :
12
14
build_and_release :
13
15
runs-on : ubuntu-latest
16
+ if : github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
17
+
14
18
steps :
15
19
- name : Checkout code
16
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
17
21
18
22
- name : Set up Bazel
19
23
uses : actions/setup-java@v3
@@ -26,15 +30,17 @@ jobs:
26
30
27
31
- name : Get current date
28
32
id : date
29
- run : echo "::set-output name=date::$(date +%Y%m%d)"
33
+ run : |
34
+ echo "date=$(date +%Y%m%d)" >> $GITHUB_ENV
30
35
31
36
- name : Create Release
37
+ id : create_release
32
38
uses : actions/create-release@v1
33
39
env :
34
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
41
with :
36
42
tag_name : v${{ steps.date.outputs.date }}
37
- release_name : Release v${{ steps.date.outputs .date }}
43
+ release_name : Release v${{ env .date }}
38
44
body : |
39
45
Automated weekly test release snapshot from master branch.
40
46
This is a test release, version compatibility or correctness
You can’t perform that action at this time.
0 commit comments