name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions πŸš€ on: [push] jobs: Explore-Gitea-Actions: runs-on: ps_runner_labels container: image: catthehacker/ubuntu:act-latest volumes: - ubuntu_hostedtoolcache:/opt/hostedtoolcache # env: # RUNNER_TOOL_CACHE: /toolcache 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." - run: echo "🍏 This job's status is ${{ job.status }}." - run: docker version # - name: Set up SSH # run: | # mkdir -p ~/.ssh # echo "${{ secrets.GITEA1_SSH_KEY }}" > ~/.ssh/id_rsa # chmod 600 ~/.ssh/id_rsa # ssh-keyscan -H 106.14.174.241 >> ~/.ssh/known_hosts # - name: Check out repository code # env: # GITEA_TOKEN: ${{ secrets.GITEA1_TOKEN }} # run: git clone root@106.14.174.241:3000/root/simple-go-action.git . # 检出代码 - name: Checkout # 从本地 Gitea δΈŠεŠ θ½½ζ’δ»Άδ»“εΊ“ uses: http://106.14.174.241:3000//actions/checkout@v4 with: fetch-depth: 0