-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (74 loc) · 2.44 KB
/
updates.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: updates
on:
push:
workflow_dispatch:
inputs:
trigger:
description: Type m to triggre manual jobs
required: false
default: ''
jobs:
check-maven-updates:
name: check maven updates
#if: startsWith(github.event.inputs.trigger, 'm')
# || startsWith(github.event.inputs.trigger, 'M')
if: github.event.inputs.trigger == ''
|| !startsWith(github.event.inputs.trigger, 'm')
|| !startsWith(github.event.inputs.trigger, 'M')
strategy:
matrix:
java: [17, 20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: actions/cache@v3
with:
path: |
~/.m2
~/.npm
~/.node
~/.docker
~/.gradle
key: ${{ runner.os }}-build-${{ hashFiles('**/*gradle*', '**/pom.xml', '**/package.json', '**/package-lock.json') }}
- run: cd $GITHUB_WORKSPACE ; ./mvnw versions:display-parent-updates
- run: cd $GITHUB_WORKSPACE ; ./mvnw versions:display-plugin-updates
- run: cd $GITHUB_WORKSPACE ; ./mvnw versions:display-property-updates
check-npm-updates:
if: github.event.inputs.trigger == ''
|| !startsWith(github.event.inputs.trigger, 'm')
|| !startsWith(github.event.inputs.trigger, 'M')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v3
with:
path: |
~/.m2
~/.npm
~/.node
~/.docker
~/.gradle
key: ${{ runner.os }}-build-${{ hashFiles('**/*gradle*', '**/pom.xml', '**/package.json', '**/package-lock.json') }}
- run: npm --prefix docs install -E
- run: npm --prefix docs run pages
#
#- run: npm --prefix docs upgrade
- run: npm_config_yes=true npx npm-check-updates -u --packageFile docs/package.json
- run: npm --prefix docs install -E
- run: npm --prefix docs run pages
#
- run: npm --prefix docs run clean
- run: npm --prefix docs install -E
- run: npm --prefix docs run pages
#
- run: npm --prefix docs run clean
- run: npm --prefix docs run clear
- run: npm --prefix docs install -E
- run: npm --prefix docs run pages