-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.12 KB
/
check-dependencies.yml
File metadata and controls
42 lines (42 loc) · 1.12 KB
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
name: Check dependencies
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-dependencies:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out latest
uses: actions/checkout@v4
with:
path: repository
- name: Check out PIH tools
uses: actions/checkout@v4
with:
repository: PIH/tools
path: tools
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
cache: 'maven'
- name: Check dependencies
id: checkDependencies
shell: bash
run: |
#!/usr/bin/env bash
set +e
./tools/ci/dependency-status-with-repolling.sh -r 300 -d ./repository
if [ $? -eq 1 ]; then
cd repository && gh workflow run deploy.yml
fi
env:
GH_TOKEN: ${{ github.token }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}