summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/dispatch-event.yml2
-rw-r--r--.github/workflows/preview-release.yml15
2 files changed, 10 insertions, 7 deletions
diff --git a/.github/workflows/dispatch-event.yml b/.github/workflows/dispatch-event.yml
index 85e2319fe..5283fab4e 100644
--- a/.github/workflows/dispatch-event.yml
+++ b/.github/workflows/dispatch-event.yml
@@ -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:
diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml
index cf49894bd..6e20df92c 100644
--- a/.github/workflows/preview-release.yml
+++ b/.github/workflows/preview-release.yml
@@ -2,11 +2,8 @@ name: Preview release
on:
workflow_dispatch:
- push:
- branches:
- - main
- tags:
- - '!**'
+ issue_comment:
+ types: [created]
merge_group:
pull_request:
paths-ignore:
@@ -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