Testing actions
This commit is contained in:
@@ -1,16 +1,19 @@
|
|||||||
# action.yml
|
name: Gitea Actions Demo
|
||||||
name: "Hello World"
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
description: "Greet someone and record the time"
|
on: [push]
|
||||||
inputs:
|
|
||||||
who-to-greet: # id of input
|
jobs:
|
||||||
description: "Who to greet"
|
Explore-Gitea-Actions:
|
||||||
required: true
|
runs-on: ubuntu-latest
|
||||||
default: "World"
|
steps:
|
||||||
outputs:
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
time: # id of output
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
description: "The time we greeted you"
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
runs:
|
- name: Check out repository code
|
||||||
using: "docker"
|
uses: actions/checkout@v3
|
||||||
image: "Dockerfile"
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
args:
|
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||||
- ${{ inputs.who-to-greet }}
|
- name: List files in the repository
|
||||||
|
run: |
|
||||||
|
ls ${{ gitea.workspace }}
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
Reference in New Issue
Block a user