update_ds #282
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
on: | |
repository_dispatch: | |
types: [update_ds] | |
jobs: | |
Update-DS-Agency-Package: | |
name: Update DS-Agency Package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.16" | |
- name: Update DS-Agency Package | |
run: npm update @kickstartds/ds-agency | |
- name: Check for changes | |
id: check_changes | |
continue-on-error: true | |
run: test -n "$(git status --porcelain)" | |
- name: Push changes | |
if: steps.check_changes.outcome == 'success' | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add package.json package-lock.json | |
git commit -m "chore: update ds-agency" | |
git push |