forked from coursier/setup-action
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (34 loc) · 925 Bytes
/
update-dist.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: Update dist
on:
push:
branches:
- main
jobs:
update-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SCALA_CLI_SETUP_INTERNAL_KEY }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Build
shell: bash -l {0}
run: |
npm ci
npm run all
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
commit-message: Update dist
author: GitHub <noreply@github.com>
delete-branch: true
title: Update dist
- name: Check Pull Request
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"