-
Notifications
You must be signed in to change notification settings - Fork 38
37 lines (32 loc) · 1.04 KB
/
Snapshot.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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# CI workflow for PRs and merges to main
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: Snapshot
on:
workflow_dispatch:
inputs:
sourceSpec:
description: 'git source spec, e.g. branch, tag or commit id'
required: false
default: 'origin/main'
targetBranch:
description: 'target branch to snapshot the sourceSpec into'
required: false
default: 'release/stable'
jobs:
create-snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
- name: run snapshot gulp script
run: |
npm i
node node_modules/gulp/bin/gulp.js snapshot --sourceSpec ${{ github.event.inputs.sourceSpec }} --targetBranch ${{ github.event.inputs.targetBranch }} --repoToken ${{ secrets.GITHUB_TOKEN }}