Compare commits

...

9 Commits

Author SHA1 Message Date
RiskyMH
0eaa222a3d . 2025-08-07 18:44:26 +10:00
RiskyMH
72796a6575 these not needed to run on cron in forks 2025-08-07 18:43:32 +10:00
Michael H
e47c2f16ac Merge branch 'main' into riskymh/actions-improvements 2025-08-07 18:34:23 +10:00
RiskyMH
0776fd19e4 . 2025-05-21 20:08:32 +10:00
RiskyMH
259d6cb227 vscode publish workflow 2025-05-21 19:58:56 +10:00
RiskyMH
8b70572d56 . 2025-05-21 18:36:06 +10:00
RiskyMH
b8d5692051 . 2025-05-21 18:32:06 +10:00
RiskyMH
7c44f41332 . 2025-05-21 18:28:52 +10:00
RiskyMH
6602ea72ee hopefully slightly better 2025-05-21 18:26:24 +10:00
13 changed files with 76 additions and 66 deletions

View File

@@ -1,43 +0,0 @@
name: Bump version
description: Bump the version of Bun
inputs:
version:
description: The most recent version of Bun.
required: true
type: string
token:
description: The GitHub token to use for creating a pull request.
required: true
type: string
default: ${{ github.token }}
runs:
using: composite
steps:
- name: Run Bump
shell: bash
id: bump
run: |
set -euo pipefail
MESSAGE=$(bun ./scripts/bump.ts patch --last-version=${{ inputs.version }})
LATEST=$(cat LATEST)
echo "version=$LATEST" >> $GITHUB_OUTPUT
echo "message=$MESSAGE" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: |
CMakeLists.txt
LATEST
token: ${{ inputs.token }}
commit-message: Bump version to ${{ steps.bump.outputs.version }}
title: Bump to ${{ steps.bump.outputs.version }}
delete-branch: true
branch: github-actions/bump-version-${{ steps.bump.outputs.version }}--${{ github.run_id }}
body: |
## What does this PR do?
${{ steps.bump.outputs.message }}
Auto-bumped by [this workflow](https://github.com/oven-sh/bun/actions/workflows/release.yml)

View File

@@ -22,7 +22,7 @@ on:
default: false
tag:
type: string
description: What is the release tag? (e.g. "1.0.2", "canary")
description: What is the release tag? (e.g. "bun-v1.0.2", "canary")
required: true
use-docker:
description: Should Docker images be released?
@@ -109,7 +109,6 @@ jobs:
npm-types:
name: Release types to NPM
runs-on: ubuntu-latest
needs: sign
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-types == 'true' }}
permissions:
contents: read
@@ -354,15 +353,49 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
if: ${{ env.BUN_LATEST == 'true' }}
- name: Setup Bun
uses: ./.github/actions/setup-bun
if: ${{ env.BUN_LATEST == 'true' }}
with:
bun-version: "1.2.0"
- id: version
run: echo "BUN_VERSION=${BUN_VERSION#bun-v}" >> "$GITHUB_OUTPUT"
- name: Bump version
uses: ./.github/actions/bump
env:
BUN_VERSION: ${{ steps.version.outputs.BUN_VERSION }}
run: |
bun -e '
const file = Bun.file("./LATEST");
const version = "${{ steps.version.outputs.BUN_VERSION }}";
await file.write(version);
// plus 1 patch version
const [major, minor, patch] = version.split(".").map(Number);
const versionNext = [major, minor, patch + 1].join(".");
const packageJson = Bun.file("./package.json");
const json = await packageJson.json();
json.version = versionNext;
await packageJson.write(JSON.stringify(json, null, 2) + "\n");
'
- name: Create Pull Request
if: ${{ env.BUN_LATEST == 'true' }}
uses: peter-evans/create-pull-request@v7
with:
version: ${{ env.BUN_VERSION }}
token: ${{ github.token }}
title: "Bump version to ${{ steps.version.outputs.BUN_VERSION }}"
add-paths: |
./LATEST
./package.json
branch: bump-version-${{ steps.version.outputs.BUN_VERSION }}
delete-branch: true
labels: "automation"
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Bump version to ${{ steps.version.outputs.BUN_VERSION }}"
body: |
## What does this PR do?
Bump version to ${{ steps.version.outputs.BUN_VERSION }}
https://bun.sh/blog/bun-v${{ steps.version.outputs.BUN_VERSION }}
Auto-bumped by [this workflow](https://github.com/oven-sh/bun/actions/workflows/release.yml)

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -88,7 +89,8 @@ jobs:
commit-message: "deps: update c-ares to ${{ steps.check-version.outputs.tag }} (${{ steps.check-version.outputs.latest }})"
title: "deps: update c-ares to ${{ steps.check-version.outputs.tag }}"
delete-branch: true
branch: deps/update-cares-${{ github.run_number }}
branch: deps/update-cares
labels: "automation"
body: |
## What does this PR do?

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -55,7 +56,7 @@ jobs:
echo "Error: Could not fetch SHA for tag $LATEST_TAG"
exit 1
fi
# Try to get commit SHA from tag object (for annotated tags)
# If it fails, assume it's a lightweight tag pointing directly to commit
LATEST_SHA=$(curl -sL "https://api.github.com/repos/HdrHistogram/HdrHistogram_c/git/tags/$LATEST_TAG_SHA" 2>/dev/null | jq -r '.object.sha // empty')

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -58,7 +59,7 @@ jobs:
TAG_OBJECT_SHA=$(echo "$TAG_REF" | jq -r '.object.sha')
TAG_OBJECT_TYPE=$(echo "$TAG_REF" | jq -r '.object.type')
if [ -z "$TAG_OBJECT_SHA" ] || [ "$TAG_OBJECT_SHA" = "null" ]; then
echo "Error: Could not fetch SHA for tag $LATEST_TAG"
exit 1

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -88,7 +89,8 @@ jobs:
commit-message: "deps: update libarchive to ${{ steps.check-version.outputs.tag }} (${{ steps.check-version.outputs.latest }})"
title: "deps: update libarchive to ${{ steps.check-version.outputs.tag }}"
delete-branch: true
branch: deps/update-libarchive-${{ github.run_number }}
branch: deps/update-libarchive
labels: "automation"
body: |
## What does this PR do?

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -88,7 +89,8 @@ jobs:
commit-message: "deps: update libdeflate to ${{ steps.check-version.outputs.tag }} (${{ steps.check-version.outputs.latest }})"
title: "deps: update libdeflate to ${{ steps.check-version.outputs.tag }}"
delete-branch: true
branch: deps/update-libdeflate-${{ github.run_number }}
branch: deps/update-libdeflate
labels: "automation"
body: |
## What does this PR do?

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -55,12 +56,12 @@ jobs:
TAG_REF_RESPONSE=$(curl -sL "https://api.github.com/repos/cloudflare/lol-html/git/refs/tags/$LATEST_TAG")
LATEST_TAG_SHA=$(echo "$TAG_REF_RESPONSE" | jq -r '.object.sha')
TAG_OBJECT_TYPE=$(echo "$TAG_REF_RESPONSE" | jq -r '.object.type')
if [ -z "$LATEST_TAG_SHA" ] || [ "$LATEST_TAG_SHA" = "null" ]; then
echo "Error: Could not fetch SHA for tag $LATEST_TAG"
exit 1
fi
if [ "$TAG_OBJECT_TYPE" = "tag" ]; then
# This is an annotated tag, we need to get the commit it points to
LATEST_SHA=$(curl -sL "https://api.github.com/repos/cloudflare/lol-html/git/tags/$LATEST_TAG_SHA" | jq -r '.object.sha')
@@ -100,7 +101,8 @@ jobs:
commit-message: "deps: update lolhtml to ${{ steps.check-version.outputs.tag }} (${{ steps.check-version.outputs.latest }})"
title: "deps: update lolhtml to ${{ steps.check-version.outputs.tag }}"
delete-branch: true
branch: deps/update-lolhtml-${{ github.run_number }}
branch: deps/update-lolhtml
labels: "automation"
body: |
## What does this PR do?

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -59,7 +60,7 @@ jobs:
LATEST_TAG_SHA=$(echo "$TAG_REF" | jq -r '.object.sha')
TAG_TYPE=$(echo "$TAG_REF" | jq -r '.object.type')
if [ -z "$LATEST_TAG_SHA" ] || [ "$LATEST_TAG_SHA" = "null" ]; then
echo "Error: Could not fetch SHA for tag $LATEST_TAG"
exit 1
@@ -105,7 +106,8 @@ jobs:
commit-message: "deps: update lshpack to ${{ steps.check-version.outputs.tag }} (${{ steps.check-version.outputs.latest }})"
title: "deps: update lshpack to ${{ steps.check-version.outputs.tag }}"
delete-branch: true
branch: deps/update-lshpack-${{ github.run_number }}
branch: deps/update-lshpack
labels: "automation"
body: |
## What does this PR do?

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-and-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -66,6 +67,8 @@ jobs:
commit-message: "update(root_certs): Update root certificates $(date +'%Y-%m-%d')"
title: "update(root_certs) $(date +'%Y-%m-%d')"
body: |
## What does this PR do?
Automated root certificates update
${{ env.cert_output }}
@@ -74,9 +77,11 @@ jobs:
```
${{ env.changed_files }}
```
branch: certs/update-root-certs-${{ github.run_number }}
Auto-updated by [this workflow](https://github.com/oven-sh/bun/actions/workflows/update-root-certs.yml)
branch: certs/update-root-certs
base: main
delete-branch: true
labels:
- "automation"
- "root-certs"
labels: |
automation
root-certs

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -100,7 +101,8 @@ jobs:
commit-message: "deps: update sqlite to ${{ steps.check-version.outputs.latest }}"
title: "deps: update sqlite to ${{ steps.check-version.outputs.latest }}"
delete-branch: true
branch: deps/update-sqlite-${{ steps.check-version.outputs.latest }}
branch: deps/update-sqlite
labels: "automation"
body: |
## What does this PR do?

View File

@@ -7,6 +7,7 @@ on:
jobs:
check-update:
if: ${{ github.repository_owner == 'oven-sh' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
contents: write

View File

@@ -18,7 +18,7 @@ jobs:
- name: Setup Bun
uses: ./.github/actions/setup-bun
with:
bun-version: "1.2.18"
bun-version: "1.2.19"
- name: Install dependencies (root)
run: bun install