-
Notifications
You must be signed in to change notification settings - Fork 156
50 lines (43 loc) · 1.41 KB
/
sync_images.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
on: [workflow_dispatch]
name: Sync Images
jobs:
sync_images:
name: Sync Images
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19.6.0
- name: Run code to Sync Images
working-directory: ./.github/workflows/utility
run: node sync_images.mjs
- name: Add Commit Push
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
add_timestamp: false
commit_prefix: "[AUTO]"
commit_message: "Sync Images"
force: false
target_branch: update/images
- name: Create A PR
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: update/images
target_branch: master
title: Sync Images
body: "**Automated pull request**"
old_string: "**THIS IS AN AUTOMATED UPDATE OF IMAGES**"
new_string: "** Automatic pull request**"
get_diff: true
ignore_users: "dependabot"