更新 .gitea/workflows/demo.yaml
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s Details

发布生产
This commit is contained in:
xiehaijun 2025-07-27 07:30:51 +00:00
parent 7dc755d257
commit 02aed4ddaf
1 changed files with 5 additions and 6 deletions

View File

@ -25,6 +25,10 @@ jobs:
# https://github.com/actions/checkout
- name: Checkout code
uses: actions/checkout@v4
run: |
echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Get commit message (Push)
if: github.event_name == 'push'
run: |
@ -85,7 +89,7 @@ jobs:
- name: Install dependencies
run: npm --version
- name: Run tests
run: echo "npm test 成功actions/github-script@v5 创建合并请求"
run: echo "npm test 成功actions/github-script@v5创建合并请求"
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
@ -95,12 +99,7 @@ jobs:
run: |
echo "mvn clean install -DskipTests"
mvn --version
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}