Skip to content

chore: release main (#914) #115

chore: release main (#914)

chore: release main (#914) #115

name: " 📚 Update Dictionaries"
on:
push:
branches:
- main
paths:
- "**/package.json"
- "**/package-lock.json"
workflow_dispatch:
schedule:
- cron: "0 12 * * 0"
jobs:
update-dictionaries:
if: github.repository_owner == 'streetsidesoftware'
runs-on: ubuntu-latest
env:
NEW_BRANCH: "update-dictionaries-main"
REF_BRANCH: main
steps:
- name: Start
env:
EVENT_INPUTS: ${{ toJson(github.event.inputs) }};
run: |
echo "$EVENT_INPUTS"
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ env.REF_BRANCH }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: npm
- name: Install
run: npm install
- name: Update Dictionaries
run: |
npm run update-dictionaries
- name: Build
run: |
npm run build
- name: PR Body
id: body
uses: streetsidesoftware/actions/public/pr-body@v1
with:
title: 📚 Update Dictionaries
- name: PR
uses: streetsidesoftware/actions/.github/actions/pr@v1
with:
commit-message: "fix: Workflow Bot -- Update Dictionaries"
branch: ${{ env.NEW_BRANCH }}
base: ${{ env.REF_BRANCH }}
body: ${{ steps.body.outputs.body }}
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}