-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.01 KB
/
release.yml
File metadata and controls
36 lines (31 loc) · 1.01 KB
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
35
36
on:
workflow_dispatch:
release:
types:
- published
name: Update release
jobs:
update-scoop:
name: Update scoop manifests
runs-on: windows-latest
steps:
- name: "Get latest release"
id: latest
uses: gregziegan/fetch-latest-release@v2.0.0
- name: Checkout
uses: actions/checkout@main
with:
ref: "develop"
- name: Update manifests
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
.\bin\checkver.ps1 * -u
.\bin\update-cask-version.ps1 -NewVersion "${{ steps.latest.outputs.tag_name }}" -FilePath .\Casks\dev-cloud.rb
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
branch: "manifests/${{ steps.latest.outputs.tag_name }}"
title: "Update manifests to version ${{ steps.latest.outputs.tag_name }}"
body: "Update manifests to version ${{ steps.latest.outputs.tag_name }}."