-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
168 additions
and
68 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,54 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: jd_z_super5g | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '6 22,0-16/5 * * *' | ||
watch: | ||
types: started | ||
repository_dispatch: | ||
types: jd_z_super5g | ||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
if: github.event.repository.owner.id == github.event.sender.id | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Cache node_modules | ||
uses: actions/cache@v2 # 使用 GitHub 官方的缓存 Action。 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }} # 使用 package-lock.json 的 Hash 作为缓存的 key。也可以使用 package.json 代替 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: '运行 【5G超级盲盒】' | ||
run: | | ||
node jd_z_super5g.js | ||
env: | ||
JD_COOKIE: ${{ secrets.JD_COOKIE }} | ||
PUSH_PLUS_TOKEN: ${{ secrets.PUSH_PLUS_TOKEN }} | ||
PUSH_PLUS_USER: ${{ secrets.PUSH_PLUS_USER }} | ||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }} | ||
QYWX_KEY: ${{ secrets.QYWX_KEY }} | ||
QYWX_AM: ${{ secrets.QYWX_AM }} | ||
JD_DEBUG: ${{ secrets.JD_DEBUG }} | ||
PUSH_KEY: ${{ secrets.PUSH_KEY }} | ||
BARK_PUSH: ${{ secrets.BARK_PUSH }} | ||
BARK_SOUND: ${{ secrets.BARK_SOUND }} | ||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }} | ||
TG_USER_ID: ${{ secrets.TG_USER_ID }} | ||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }} | ||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }} | ||
Z_SUPER5G_NOTIFY: ${{ secrets.Z_SUPER5G_NOTIFY }} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.