-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #3186 Use Composer to track az-icons package, and add ability f…
…or site owner to choose how az-icon library is loaded. (#1465) Co-authored-by: Brian Berndt <[email protected]>
- Loading branch information
1 parent
9885c9a
commit 7f01034
Showing
53 changed files
with
81 additions
and
320 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Create PR for new Arizona Icons release | ||
run-name: Create PR to update Arizona Icons to ${{ github.event.client_payload.version }}. | ||
on: | ||
repository_dispatch: | ||
types: az_icons_release | ||
|
||
jobs: | ||
release: | ||
name: Create PR | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# with: | ||
# ssh-key: ${{ secrets.SELF_DEPLOY_KEY }} | ||
|
||
- name: Create new branch and PR | ||
run: | | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git checkout -b 'az-icons-${{ github.event.client_payload.version }}' | ||
jq --indent 4 '.require."az-digital/az-icons" |= "${{ github.event.client_payload.version }}"' composer.json > composer.json.new | ||
mv composer.json.new composer.json | ||
cat themes/custom/az_barrio/includes/common.inc | sed "s/^define('AZ_ICONS_STABLE_VERSION'.*/define('AZ_ICONS_STABLE_VERSION', '${{ github.event.client_payload.version }}');/g" > common.inc.new | ||
mv common.inc.new themes/custom/az_barrio/includes/common.inc | ||
git add composer.json themes/custom/az_barrio/includes/common.inc | ||
git commit -m 'Update Arizona Icons to ${{ github.event.client_payload.version }}' | ||
git push --set-upstream origin 'az-icons-${{ github.event.client_payload.version }}' | ||
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | ||
gh pr create --title 'Update Arizona Icons to ${{ github.event.client_payload.version }}' --body '' |
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
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
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
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
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
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
87 changes: 0 additions & 87 deletions
87
themes/custom/az_barrio/libraries/az-icons/az-icons-styles.css
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.