generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 180
43 lines (39 loc) · 1.28 KB
/
update-dependencies.yaml
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
name: Update dependencies
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update ims lib and create PR if needed
uses: actions/github-script@v7
with:
script: |
const updateDependency = require('./.github/workflows/update-script.js')
updateDependency({
github,
context,
title: '[AUTOMATED-PR] Update imslib.min.js dependency',
path: 'https://auth.services.adobe.com/imslib/imslib.min.js',
branch: 'update-imslib',
scriptPath: './libs/deps/imslib.min.js'
})
- name: Update forms2 and create PR if needed
uses: actions/github-script@v7
with:
script: |
const updateDependency = require('./.github/workflows/update-script.js')
updateDependency({
github,
context,
title: '[AUTOMATED-PR] Update forms2.min.js dependency',
path: 'https://engage.adobe.com/js/forms2/js/forms2.min.js',
branch: 'update-forms2',
scriptPath: './libs/deps/forms2.min.js'
})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}