Update Icons #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |