49
.github/workflows/release.yaml
vendored
49
.github/workflows/release.yaml
vendored
@@ -291,7 +291,7 @@ jobs:
|
|||||||
needs: [docker-manifest, github-release]
|
needs: [docker-manifest, github-release]
|
||||||
runs-on: "runs-on=${{ github.run_id }}/runner=2cpu-linux-x64/extras=s3-cache"
|
runs-on: "runs-on=${{ github.run_id }}/runner=2cpu-linux-x64/extras=s3-cache"
|
||||||
permissions:
|
permissions:
|
||||||
contents: "read"
|
contents: "write"
|
||||||
packages: "write"
|
packages: "write"
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
attestations: "write"
|
attestations: "write"
|
||||||
@@ -430,25 +430,37 @@ jobs:
|
|||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
EXISTING_SHA=$(gh api "repos/getprobo/homebrew-tap/contents/Formula/prb.rb" --jq '.sha' 2>/dev/null || echo "")
|
CONTENT=$(base64 -w0 prb.rb)
|
||||||
|
HEAD_OID=$(gh api "repos/getprobo/homebrew-tap/git/ref/heads/main" --jq '.object.sha')
|
||||||
|
|
||||||
if [ -n "$EXISTING_SHA" ]; then
|
gh api graphql -f query='
|
||||||
gh api "repos/getprobo/homebrew-tap/contents/Formula/prb.rb" \
|
mutation($headline: String!, $oid: GitObjectID!, $contents: Base64String!) {
|
||||||
--method PUT \
|
createCommitOnBranch(input: {
|
||||||
-f message="prb ${VERSION}" \
|
branch: {
|
||||||
-f content="$(base64 -w0 prb.rb)" \
|
repositoryNameWithOwner: "getprobo/homebrew-tap"
|
||||||
-f sha="${EXISTING_SHA}"
|
branchName: "main"
|
||||||
else
|
}
|
||||||
gh api "repos/getprobo/homebrew-tap/contents/Formula/prb.rb" \
|
message: { headline: $headline }
|
||||||
--method PUT \
|
expectedHeadOid: $oid
|
||||||
-f message="prb ${VERSION}" \
|
fileChanges: {
|
||||||
-f content="$(base64 -w0 prb.rb)"
|
additions: [{
|
||||||
fi
|
path: "Formula/prb.rb"
|
||||||
|
contents: $contents
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}) {
|
||||||
|
commit { url }
|
||||||
|
}
|
||||||
|
}' \
|
||||||
|
-f headline="prb ${VERSION}" \
|
||||||
|
-f oid="${HEAD_OID}" \
|
||||||
|
-f contents="${CONTENT}"
|
||||||
|
|
||||||
# ── npm release (independent) ───────────────────────────────────────
|
# ── n8n node release ────────────────────────────────────────────────
|
||||||
npm-release:
|
n8n-node-release:
|
||||||
name: "npm-release"
|
name: "n8n-node-release"
|
||||||
runs-on: "runs-on=${{ github.run_id }}/runner=4cpu-linux-x64/extras=s3-cache"
|
needs: [github-release]
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
@@ -458,7 +470,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: "runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0" # v2
|
|
||||||
- uses: "actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f" # v6
|
- uses: "actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f" # v6
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
|
|||||||
Reference in New Issue
Block a user