更新 '.gitea/workflows/build.yaml'
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Failing after 13s
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Failing after 13s
This commit is contained in:
parent
5a9d0dcde2
commit
b06996028b
@ -7,30 +7,21 @@ jobs:
|
|||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
DOCKER_REGISTRY: registry.cn-hangzhou.aliyuncs.com
|
|
||||||
DOCKER_USERNAME: rsjst
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- run: cat README.md
|
- run: cat README.md
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Pnpm
|
||||||
uses: actions/setup-java@v3
|
uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
version: 7.30.0
|
||||||
java-version: 11
|
|
||||||
|
|
||||||
- run: java -version
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Get Meta
|
- run: pnpm -v
|
||||||
id: meta
|
|
||||||
run: |
|
|
||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
|
||||||
echo REPO_VERSION=$(echo ${{ github.ref }} | awk -F"/" '{print $3}' | awk -F"v" '{print $2}') >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- run: echo ${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
|
||||||
|
|
||||||
- name: Notification
|
|
||||||
if: ${{ secrets.BARK_TOKEN != '' }}
|
|
||||||
run: curl https://api.day.app/${{ secrets.BARK_TOKEN }}/GiteaActions/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}+build+success.?icon=https://gitea.io/images/gitea.png&group=GiteaActions
|
|
Loading…
x
Reference in New Issue
Block a user