更新 '.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
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
DOCKER_REGISTRY: registry.cn-hangzhou.aliyuncs.com
|
||||
DOCKER_USERNAME: rsjst
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- run: cat README.md
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
- name: Setup Pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
distribution: zulu
|
||||
java-version: 11
|
||||
version: 7.30.0
|
||||
|
||||
- run: java -version
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Get Meta
|
||||
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
|
||||
- run: pnpm -v
|
Loading…
x
Reference in New Issue
Block a user