-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 990 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release
on:
workflow_dispatch:
inputs:
url:
description: "New Manifest URL"
required: true
type: string
sha256:
description: "New Manifest SHA256"
required: true
type: string
version:
description: "New Manifest VERSION"
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bump Manifest
run: |
jq '.architecture["64bit"].url |= "${{ inputs.url }}" | .architecture["64bit"].hash |= "${{ inputs.sha256 }}" | .version |= "${{ inputs.version }}"' bucket/lucky.json > lucky.json
rm bucket/lucky.json
mv lucky.json bucket/
- name: Create PR
uses: peter-evans/create-pull-request@v6
with:
branch: "release/${{ inputs.version }}"
title: "Release ${{ inputs.version }}"
commit-message: "release: bump to ${{ inputs.version }}"