-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (27 loc) · 928 Bytes
/
update.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
name: Update
on:
workflow_dispatch:
jobs:
update:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: echo "$($pwd.path)\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- run: echo "GIT_HASH=$($env:GITHUB_SHA.substring(0,8))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Install and cache PowerShell modules
uses: potatoqualitee/psmodulecache@v4
with:
modules-to-cache: powershell-yaml
- name: update
run: ./update-releases.ps1
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
branch: 'update-${{env.GIT_HASH}}'
base: main
title: 'chore: update releases'
commit-message: 'chore: update releases'