From d60edcbf632f9248b2f4cc30af69510973817e96 Mon Sep 17 00:00:00 2001 From: Grand-cocoa <1075576561@qq.com49111108+grand-cocoa@users.noreply.github.com> Date: Fri, 30 Aug 2024 14:45:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=EF=BC=9AGitea=20Actions=20Demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 创建新的Gitea Actions Demo工作流,包含推送事件触发的构建和测试任务。该工作流旨在演示Gitea Actions的功能,包括检查仓库代码、显示环境信息以及列出仓库中的文件。 --- .getea/workflows/build-test.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .getea/workflows/build-test.yaml diff --git a/.getea/workflows/build-test.yaml b/.getea/workflows/build-test.yaml new file mode 100644 index 0000000..c537cc6 --- /dev/null +++ b/.getea/workflows/build-test.yaml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + 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 }}." + - name: Check out repository code + uses: actions/checkout@v4 + - 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 }} + - run: echo "🍏 This job's status is ${{ job.status }}."