-
Notifications
You must be signed in to change notification settings - Fork 680
37 lines (34 loc) · 1004 Bytes
/
branch-snap.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
name: Branch snap
on:
workflow_dispatch
permissions:
contents: write
pull-requests: write
jobs:
check-script:
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
with:
configuration_file_path: '.config/snap-flow.json'
create-pull-request:
if: github.ref == 'refs/heads/dev/dibarbet/action_inc_version'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Install dependencies
run: |
npm ci
npm i -g gulp
- name: Update version.json
run: gulp incrementVersionJson
- name: Create version.json update PR
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update main version
title: 'Update main version'
branch: merge/update-main-version