Skip to content

Commit 072572e

Browse files
committed
Make it consistent with truffleruby-dev-builder workflow
1 parent 0b31476 commit 072572e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: CRuby Dev Builds
22
on:
3+
workflow_dispatch:
34
push:
45
tags:
56
- '*'
67
schedule:
78
- cron: '0 19 * * *'
8-
workflow_dispatch:
9-
109
jobs:
1110
release:
1211
name: Create GitHub Release
@@ -18,11 +17,12 @@ jobs:
1817
- uses: actions/checkout@v3
1918
with:
2019
fetch-depth: 0
21-
if: github.event_name == 'schedule'
22-
- name: Create tag
23-
id: create_tag
20+
if: github.event_name != 'push'
21+
22+
- name: Set tag name
23+
id: tag
2424
run: |
25-
if [[ "${{ github.event_name }}" == "schedule" ]]; then
25+
if [[ "${{ github.event_name }}" != "push" ]]; then
2626
tag=v$(date +%Y%m%d.%H%M%S)
2727
else
2828
tag=$(basename "${{ github.ref }}")
@@ -33,9 +33,10 @@ jobs:
3333
uses: actions/create-release@v1
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GH_REPO: ${{ github.repository }}
3637
with:
37-
tag_name: ${{ steps.create_tag.outputs.tag }}
38-
release_name: ${{ steps.create_tag.outputs.tag }}
38+
tag_name: ${{ steps.tag.outputs.tag }}
39+
release_name: ${{ steps.tag.outputs.tag }}
3940
draft: true
4041
prerelease: false
4142

0 commit comments

Comments
 (0)