Compare commits
6 Commits
143637c4fc
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
e0c7e2a725
|
|||
|
|
7bc1195651 | ||
|
|
786c441206 | ||
|
|
558f12143c | ||
|
|
2cd8137eeb | ||
|
|
77f77c3e8b |
4
.github/workflows/publish-release.js
vendored
4
.github/workflows/publish-release.js
vendored
@@ -48,8 +48,7 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
|
||||
return
|
||||
}
|
||||
console.log(release)
|
||||
if (release.draft) {
|
||||
if (!release.draft) {
|
||||
core.setFailed(`GitHub release for tag '${tag}' is already published.`)
|
||||
return
|
||||
}
|
||||
@@ -115,7 +114,6 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo
|
||||
})
|
||||
console.log(releases)
|
||||
const release = firstOrDefault(releases.data, (x) => x.tag_name == tag)
|
||||
return release
|
||||
}
|
||||
|
||||
6
.github/workflows/publish-release.yml
vendored
6
.github/workflows/publish-release.yml
vendored
@@ -36,11 +36,11 @@ jobs:
|
||||
await script.validateRelease()
|
||||
|
||||
- name: Finalize GitHub release and milestone
|
||||
if: github.event.inputs.dryrun == false
|
||||
if: ${{ github.event.inputs.dryrun == 'false' }}
|
||||
uses: actions/github-script@v5
|
||||
with:
|
||||
script: |
|
||||
const scriptf = require('./.github/workflows/publish-release.js')
|
||||
const script = scriptf({github, context, core})
|
||||
//await script.publishRelease()
|
||||
//await script.closeMilestone()
|
||||
await script.publishRelease()
|
||||
await script.closeMilestone()
|
||||
|
||||
@@ -19,7 +19,7 @@ Clone the repository with: `git clone https://github.com/zpqrtbnk/test-repo.git
|
||||
We have test GitHUb pages (from the `gh-pages` branch) at: http://zpqrtbnk.github.io/test-repo/
|
||||
|
||||
We have an image in the README (markdown)
|
||||

|
||||

|
||||
|
||||
We have an image in the README (html)
|
||||
<img src="./wtf.jpg" />
|
||||
|
||||
Reference in New Issue
Block a user