Skip to content

Commit e9a34d3

Browse files
committed
ci: run release check before creation
1 parent 523b813 commit e9a34d3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,6 @@ jobs:
9090
echo "Version: ${{ steps.get_version.outputs.version }}"
9191
echo "Filename: ${{ steps.get_version.outputs.filename }}"
9292
93-
- name: Create Nightly Release (if not exists)
94-
id: create_release
95-
if: steps.check_release.outputs.release_exists == 'false'
96-
uses: actions/github-script@v6
97-
with:
98-
script: |
99-
const release = await github.rest.repos.createRelease({
100-
owner: context.repo.owner,
101-
repo: context.repo.repo,
102-
tag_name: "nightly",
103-
name: "Nightly Builds",
104-
body: "This is an automated nightly build release.",
105-
draft: false,
106-
prerelease: true,
107-
});
108-
core.setOutput("release_id", release.data.id);
109-
core.setOutput("upload_url", release.data.upload_url);
110-
11193
- name: Check Existing Release
11294
id: check_release
11395
uses: actions/github-script@v6
@@ -131,6 +113,24 @@ jobs:
131113
}
132114
}
133115
116+
- name: Create Nightly Release (if not exists)
117+
id: create_release
118+
if: steps.check_release.outputs.release_exists == 'false'
119+
uses: actions/github-script@v6
120+
with:
121+
script: |
122+
const release = await github.rest.repos.createRelease({
123+
owner: context.repo.owner,
124+
repo: context.repo.repo,
125+
tag_name: "nightly",
126+
name: "Nightly Builds",
127+
body: "This is an automated nightly build release.",
128+
draft: false,
129+
prerelease: true,
130+
});
131+
core.setOutput("release_id", release.data.id);
132+
core.setOutput("upload_url", release.data.upload_url);
133+
134134
- name: Get Commit Messages From Last Day and Update the Release
135135
id: commit_messages
136136
working-directory: ${{ github.workspace }}

0 commit comments

Comments
 (0)