-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/withastro/astro into 11821-…
…inferSize-error-local-image
- Loading branch information
Showing
880 changed files
with
14,842 additions
and
110,187 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,13 @@ jobs: | |
PR-BENCH: ${{ steps.benchmark-pr.outputs.BENCH_RESULT }} | ||
MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }} | ||
steps: | ||
- name: Check if user has write access | ||
uses: lannonbr/[email protected] | ||
with: | ||
permission: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# https://github.com/actions/checkout/issues/331#issuecomment-1438220926 | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Congratsbot | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
congrats: | ||
name: congratsbot | ||
if: ${{ github.repository_owner == 'withastro' && github.event.head_commit.message != '[ci] format' }} | ||
uses: withastro/automation/.github/workflows/congratsbot.yml@main | ||
with: | ||
EMOJIS: '🎉,🎊,🧑🚀,🥳,🙌,🚀,👏,<:houston_golden:1068575433647456447>,<:astrocoin:894990669515489301>,<:astro_pride:1130501345326157854>' | ||
secrets: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check if user has write access | ||
uses: lannonbr/[email protected] | ||
with: | ||
permission: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- run: | | ||
gh issue edit ${{ github.event.issue.number }} --add-label "pr: preview" --repo ${{ github.repository }} | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,10 @@ jobs: | |
issues: write | ||
pull-requests: write | ||
steps: | ||
- name: "Check if user has write access" | ||
uses: "lannonbr/[email protected]" | ||
- name: Check if user has write access | ||
uses: lannonbr/[email protected] | ||
with: | ||
permission: "write" | ||
permission: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Sync examples | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
skip-unchanged-check: | ||
type: boolean | ||
default: false | ||
dry-run: | ||
type: boolean | ||
default: false | ||
push: | ||
branches: | ||
- main | ||
- next | ||
|
||
# Automatically cancel in-progress actions on the same branch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
# Allow auto-branch-sync-action to git push | ||
contents: write | ||
|
||
jobs: | ||
sync: | ||
name: Sync branches | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 # fetch 2 to compare with previous commit for changes | ||
|
||
- name: Detect changesets | ||
uses: bluwy/detect-changesets-action@v1 | ||
id: detect | ||
|
||
# We only do sync if there are no changesets, so we don't accidentally allow users | ||
# to clone examples that may rely on unreleased code | ||
|
||
- name: Sync from main branch to latest and examples/* branches | ||
if: steps.detect.outputs.has-changesets == 'false' && github.ref == 'refs/heads/main' | ||
uses: bluwy/auto-branch-sync-action@v1 | ||
with: | ||
map: | | ||
/ -> latest | ||
/examples/* -> examples/* | ||
skip-unchanged-check: ${{ inputs.skip-unchanged-check == true }} | ||
dry-run: ${{ inputs.dry-run == true }} | ||
|
||
- name: Check .changeset/pre.json for matching tag | ||
if: steps.detect.outputs.has-changesets == 'false' && github.ref == 'refs/heads/next' | ||
id: check-pre-mode | ||
run: | | ||
if [ -f ./.changeset/pre.json ]; then | ||
if grep -q '"tag": "alpha"' ./.changeset/pre.json; then | ||
echo "alpha=true" >> $GITHUB_OUTPUT | ||
elif grep -q '"tag": "beta"' ./.changeset/pre.json; then | ||
echo "beta=true" >> $GITHUB_OUTPUT | ||
elif grep -q '"tag": "rc"' ./.changeset/pre.json; then | ||
echo "rc=true" >> $GITHUB_OUTPUT | ||
fi | ||
fi | ||
- name: Sync from next branch to alpha branch | ||
if: steps.detect.outputs.has-changesets == 'false' && steps.check-pre-mode.outputs.alpha == 'true' | ||
uses: bluwy/auto-branch-sync-action@v1 | ||
with: | ||
map: / -> alpha | ||
skip-unchanged-check: ${{ inputs.skip-unchanged-check == true }} | ||
dry-run: ${{ inputs.dry-run == true }} | ||
|
||
- name: Sync from next branch to beta branch | ||
if: steps.detect.outputs.has-changesets == 'false' && steps.check-pre-mode.outputs.beta == 'true' | ||
uses: bluwy/auto-branch-sync-action@v1 | ||
with: | ||
map: / -> beta | ||
skip-unchanged-check: ${{ inputs.skip-unchanged-check == true }} | ||
dry-run: ${{ inputs.dry-run == true }} | ||
|
||
- name: Sync from next branch to rc branch | ||
if: steps.detect.outputs.has-changesets == 'false' && steps.check-pre-mode.outputs.rc == 'true' | ||
uses: bluwy/auto-branch-sync-action@v1 | ||
with: | ||
map: / -> rc | ||
skip-unchanged-check: ${{ inputs.skip-unchanged-check == true }} | ||
dry-run: ${{ inputs.dry-run == true }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.