-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 1.08 KB
/
update_icons.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
name: Update Icons
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * 1'
jobs:
update-icons:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Update Zeplin credentials
env:
ZTOKEN: ${{ secrets.ZTOKEN }}
ZSTYLE: ${{ secrets.ZSTYLE }}
run:
echo -e "zeplin.token=$ZTOKEN\nzeplin.styleguide=$ZSTYLE" >> ./local.properties
- name: Install pip libs
run: pip install lxml
- name: Update icons
run: ./gradlew downloadIcons
- name: Move icons
run: ./gradlew moveIcons
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
commit-message: Update icons
title: Update icons
body: |
This PR is Auto-generated
branch: update-icons