diff --git a/.github/workflows/dependency-update.yml b/.github/workflows/dependency-update.yml new file mode 100644 index 0000000..0d596e4 --- /dev/null +++ b/.github/workflows/dependency-update.yml @@ -0,0 +1,40 @@ +name: Dependency Update + +env: + NODE: 18 + GIT_USER: "Automated" + GIT_EMAIL: "actions@users.noreply.github.com" + GIT_BRANCH: actions/update-icons + +on: + pull_request: + types: + - closed + +jobs: + dependency_update: + name: Update icons + runs-on: ubuntu-latest + if: | + github.event.pull_request.merged == true && + startsWith(github.event.pull_request.head.ref, 'dependabot/') + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "${{ env.NODE }}" + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run build + - name: Creating PR for new Icons + 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 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 Flagpack Icons" -B main --label dependencies + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 388bbdc..c4d24b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.2] - 2023-11-26 ### Fixed - KSA (sa) Flag Color, thanks to [@murtadha-ahmed](https://github.com/murtadha-ahmed) diff --git a/composer.json b/composer.json index d451cc9..3f9f0d6 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "siteation/magento2-hyva-icons-flags", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "type": "magento2-module", "description": "Flags icons for Hyva Themes", diff --git a/package-lock.json b/package-lock.json index 1539f73..1530090 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sitation/magento2-hyva-icons-flags", - "version": "1.0.1", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sitation/magento2-hyva-icons-flags", - "version": "1.0.1", + "version": "1.0.0", "license": "MIT", "devDependencies": { "flagpack-core": "^2.0.0" diff --git a/package.json b/package.json index 2115766..8f3c1a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sitation/magento2-hyva-icons-flags", - "version": "1.0.1", + "version": "1.0.0", "description": "the npm pkg is here just here to update the Flags icons for Hyvä", "homepage": "https://siteation.dev", "author": {