Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: compile_host_redirect_js automated pull request #1459

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/compile_host_redirect_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:
branches:
- main
paths:
- "firebase.json"
- "tool/host-redirect/**"
- 'firebase.json'
- 'tool/host-redirect/**'
- '.github/workflows/compile_host_redirect_js.yml'

permissions:
contents: write
Expand All @@ -28,5 +29,19 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
- name: Build JS
run: bash ./tool/host-redirect/build.sh
shell: bash
run: bash ./tool/host-redirect/build.sh
shell: bash
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.DOCS_REPO_DEPLOY_TOKEN }}
base: main
branch: bot/update-host-redirect-min-js
add-paths: |
./src/content/assets/js/host-redirect.min.js
title: '[🤖bot] Update: host-redirect.min.js'
committer: 'cfug-dev <[email protected]>'
commit-message: '[🤖bot] Update: host-redirect.min.js'
branch-suffix: timestamp
labels: |
auto.PR
8 changes: 0 additions & 8 deletions tool/host-redirect/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,3 @@ npm run build

cd -
cp ./tool/host-redirect/build/host-redirect.min.js ./src/content/assets/js/host-redirect.min.js

git init
git config --global user.name "cfug-dev"
git config --global user.email "[email protected]"

git add ./src/content/assets/js/host-redirect.min.js
git commit -m "[sync] Update: host-redirect.min.js"
git push -u -f
Loading