fix: render S3 buckets as gitlab CI/CD variables (#201) #231
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: | |
# Trigger the workflow on push or pull request, | |
# but only for the master branch | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
update-icons: | |
runs-on: ubuntu-latest | |
steps: | |
- if: github.event_name == 'push' | |
uses: actions/checkout@v2 | |
- if: github.event_name == 'pull_request' | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14.18.1 | |
- name: Download Line Icons | |
run: npm ci --progress=false && npm run line:download | |
env: | |
API_DOWNLOAD_LINE: ${{ secrets.API_DOWNLOAD_LINE }} | |
STYLE: line | |
CSS_PREFIX: uil | |
- name: Download Solid Icons | |
run: npm run line:download | |
env: | |
API_DOWNLOAD_SOLID: ${{ secrets.API_DOWNLOAD_SOLID }} | |
STYLE: solid | |
CSS_PREFIX: uis | |
- name: Download Monochrome Icons | |
run: npm run monochrome:download | |
env: | |
API_DOWNLOAD_MONOCHROME: ${{ secrets.API_DOWNLOAD_MONOCHROME }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: Updated Icons |