Stage #14570
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
name: Stage | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PAT: ${{ secrets.PAT }} | |
QINIU_BUCKET: ${{ secrets.QINIU_BUCKET }} | |
QINIU_AK: ${{ secrets.QINIU_AK }} | |
QINIU_SK: ${{ secrets.QINIU_SK }} | |
RHYTHEM_TOKEN: ${{ secrets.RHYTHEM_TOKEN }} | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: Go staging | |
run: go run ./actions/stage | |
- name: Commit and push | |
run: |- | |
git config --global user.email "[email protected]" && git config --global user.name "Bot" | |
git diff | |
git add . && git commit -m ":bookmark: Staging" || exit 0 | |
git push | |
- name: Index bazaar | |
run: go run ./actions/index | |
- name: Go hashing | |
run: go run ./actions/hash |