Skip to content

Commit a18fcf7

Browse files
feat(release_create): allow action to run on more events (#17)
1 parent 76d7836 commit a18fcf7

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

actions/release_create/action.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ runs:
105105
} >> $GITHUB_OUTPUT
106106
107107
- name: Create/Update GitHub Release
108-
if: >-
109-
github.repository == 'LizardByte/actions' ||
110-
(github.event_name == 'push' && github.ref == 'refs/heads/master')
111108
uses: ncipollo/release-action@v1.16.0
112109
with:
113110
allowUpdates: ${{ inputs.allowUpdates }}
@@ -123,16 +120,12 @@ runs:
123120

124121
- name: Sleep
125122
# wait for the new release to be available in the API
126-
if: >-
127-
inputs.deleteOtherPreReleases == 'true' &&
128-
(github.event_name == 'push' && github.ref == 'refs/heads/master')
123+
if: inputs.deleteOtherPreReleases == 'true'
129124
shell: bash
130125
run: sleep 30
131126

132127
- name: Delete Other PreReleases
133-
if: >-
134-
inputs.deleteOtherPreReleases == 'true' &&
135-
(github.event_name == 'push' && github.ref == 'refs/heads/master')
128+
if: inputs.deleteOtherPreReleases == 'true'
136129
uses: actions/github-script@v7
137130
env:
138131
DELETE_TAGS: ${{ inputs.deletePreReleaseTags }}

actions/release_create/ci-matrix.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"runs-on": "ubuntu-latest",
55
"with": {
66
"allowUpdates": false,
7+
"artifactErrorsFailBuild": true,
78
"artifacts": "dist/*",
89
"body": "Test from PR-${ github.event.pull_request.number }",
10+
"deleteOtherPreReleases": false,
911
"generateReleaseNotes": false,
1012
"name": "pr-${ github.event.pull_request.number }-${ github.run_id }",
1113
"prerelease": true,

0 commit comments

Comments
 (0)