-
Notifications
You must be signed in to change notification settings - Fork 134
62 lines (55 loc) · 1.71 KB
/
dependencies.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
name: dependencies
on:
schedule:
- cron: "0 11 1 * *"
env:
WORKING_DIR: template
jobs:
create_issue:
name: Create Dependencies Report
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Github API Request
id: request
uses: octokit/request-action@v2.0.2
with:
route: ${{ github.event.issue.pull_request.url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ fromJson(steps.request.outputs.data).head.repo.full_name }}
ref: ${{ steps.pr_data.outputs.branch }}
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache
uses: actions/cache@v1
with:
path: ~/${{ env.WORKING_DIR }}/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Get Dependencies
working-directory: ${{ env.WORKING_DIR }}
run: |
echo 'GITHUB_DEPENDENCIES<<EOF' >> $GITHUB_ENV
./gradlew dependencyUpdates >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Create Dependencies issue
uses: imjohnbo/issue-bot@3daae12aa54d38685d7ff8459fc8a2aee8cea98b
with:
assignees: "filmaluco"
labels: "dependencies"
title: "Dependencies with update Available"
body: |
${{ env.GITHUB_DEPENDENCIES }}
pinned: true
close-previous: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}