Skip to content

Update icons with new dependency update #6

Update icons with new dependency update

Update icons with new dependency update #6

Workflow file for this run

name: PreRelease
env:
NODE: 20
GIT_USER: "Automated"
GIT_EMAIL: "actions@users.noreply.github.com"
GIT_BRANCH: actions/update-icons
on:
pull_request:
types:
- closed
jobs:
version_update:
if: |
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'dependabot/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "${{ env.NODE }}"
registry-url: https://registry.npmjs.org/
- run: npm ci
- name: Dependency Update
run: npm run build
- name: Update Changelog
run: npm run update:changelog
- name: Create Merge Request
run: |-
timestamp=$(date +"%Y-%m-%d")
git config user.name ${{ env.GIT_USER }}
git config user.email ${{ env.GIT_EMAIL }}
git checkout -b "${{ env.GIT_BRANCH }}-${timestamp}"
git fetch -a
git add -A
git commit -m "Update icons with dependency update" || exit 0
git push --set-upstream origin ${{ env.GIT_BRANCH }}-${timestamp}
gh pr create --title "Update icons with new dependency update" --body "This updates the Hyva version with the latest icons from LucideIcons" -B main --label dependencies
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}