Skip to content

Commit

Permalink
ci: run preview release on demand (#11803)
Browse files Browse the repository at this point in the history
* ci: run preview release on demand

* Update .github/workflows/preview-release.yml

Co-authored-by: Bjorn Lu <[email protected]>

* run on comments

---------

Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
ematipico and bluwy authored Aug 21, 2024
1 parent 04390c8 commit 4f25b60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dispatch-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
env:
ASTRO_ADAPTERS_REPO: withastro/adapters
ASTRO_STARLIGHT_REPO: withastro/starlight
ASTRO_PUSH_MAIN_EVENT: biome-push-main-event
ASTRO_PUSH_MAIN_EVENT: astro-push-main-event

jobs:
repository-dispatch:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Preview release

on:
workflow_dispatch:
push:
branches:
- main
tags:
- '!**'
issue_comment:
types: [created]
merge_group:
pull_request:
paths-ignore:
Expand All @@ -33,8 +30,14 @@ env:

jobs:
preview:
name: Publish preview release
if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && (startsWith(github.event.comment.body, '!preview')) }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
name: Publish preview release
timeout-minutes: 5
steps:
- name: Disable git crlf
Expand Down

0 comments on commit 4f25b60

Please sign in to comment.