Skip to content

Instantly share code, notes, and snippets.

@bcoe
Created June 22, 2021 13:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcoe/8d531ad6252017ecb562932fcf1c7978 to your computer and use it in GitHub Desktop.
Save bcoe/8d531ad6252017ecb562932fcf1c7978 to your computer and use it in GitHub Desktop.
updating-svg.yaml
on:
push:
branches:
- main
name: push-interest-changes
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
run: npm install
- name: build
run: npm run generate
- name: commit
run: |-
set -e
git config --global user.name "actions-bot"
git config user.email 'github-actions-bot@google.com'
git add interests.svg
- name: Create PR to update SVG
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update interests.svg"
author: "actions-bot <github-actions-bot@google.com>"
title: "chore: update interests.svg"
labels: automated pr
branch: create-pull-request/update-interests
delete-branch: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment