forked from Makazzz/VSCodiumPortable
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 931 Bytes
/
bump.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
35
36
37
38
# This is a basic workflow to help you get started with Actions
name: Bump
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
bump:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PAT }}
- name: Install required PowerShell modules
if: steps.cacher.outputs.cache-hit != 'true'
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module PSIni -ErrorAction Stop
- name: Bump
run: pwsh -ExecutionPolicy ByPass -File bump.ps1
timeout-minutes: 10
- name: Commit
if: env.SHOULD_COMMIT == 'yes'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ${{ env.UPSTREAM_TAG }}