From fadddc902a998f270e0920311f3758f2d6845aa5 Mon Sep 17 00:00:00 2001 From: huanghs Date: Tue, 21 Mar 2023 17:09:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'.gitea/workflows/build.ya?= =?UTF-8?q?ml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 7a579e3..a5a4abb 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,36 +1,9 @@ name: Gitea Actions Demo -run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 on: [push] - jobs: - Explore-Gitea-Actions: - runs-on: self-hosted - defaults: - run: - shell: /bin/bash + Gitea-Actions: + runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.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 ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "💡 The ${{ github.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 ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." - - - name: Get Meta - id: meta - run: | - echo ::set-output name=REPO::`echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}'` - echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - - - run: echo "🍏 This job's status is ${{ steps.get_version.outputs.VERSION }}." - - run: echo "🍏 This job's status is ${{ steps.get_repo.outputs.REPO }}." - - run: echo "🍏 This job's status is ${{ steps.meta.outputs.VERSION }}." - - run: echo "🍏 This job's status is ${{ steps.meta.outputs.REPO }}." - name: Set up QEMU uses: docker/setup-qemu-action@v2