This commit is contained in:
千里走单骑 2024-04-03 01:18:06 +08:00
parent 18265ca118
commit 402632c556
2 changed files with 5 additions and 13 deletions

View File

@ -3,8 +3,8 @@ run-name: ${{ github.actor }} Gitea Actions 🚀🚀🚀
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- main
# branches:
# - main
# Sequence of patterns matched against refs/tags
tags:
- v*

View File

@ -1,24 +1,16 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
# on: [push]
env:
# DOCKER_REGISTRY: docker.io
# DOCKER_USERNAME: softyouling
# 此处可修改为你任意 docker 镜像仓库地址和用户名
on: [push]
DOMAIN: gitea.lntu.edu.cn
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
# container: ${{ env.DOMAIN }}/youling/devops
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: apt update && apt install -y git nodejs
- name: 拉取代码
uses: https://${{ env.DOMAIN }}/actions/checkout@v4
- name: Check out repository code
uses: actions/checkout@v3
- 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