demo/.gitea/workflows/demo.yaml
liyy fbb7fd23c4
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
添加环境监测语句
2025-05-07 02:55:29 +00:00

28 lines
1.1 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-22.04-slim
steps:
- 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: Check git version
run: |
echo "git -v"
- name: Check nodejs version
run: |
echo "node -v"
echo "npm -v"
- run: npm i -g pnpm
- name: Check pnpm version
run: |
echo "pnpm -v"
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."