Files
actions-test/.gitea/workflows/demo.yaml
Parnic 046fca2d27
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 3s
Try some more stuff
2025-03-03 10:33:48 -06:00

36 lines
1.7 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push, pull_request, workflow_dispatch]
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 }}."
- name: commits[0] author name
run: echo "${{ github.event.commits[0].author.name }}"
- name: commits[0] author email
run: echo "${{ github.event.commits[0].author.email }}"
- name: head_commit author email
run: echo "${{ github.event.head_commit.author.email }}"
- name: user email
run: echo "${{ github.event.user.email}}"
- name: pr commits[0] email
run: echo "${{ github.event.pull_request.commits[0].author.email}}"
- name: pr head_commit email
run: echo "${{ github.event.pull_request.head_commit.author.email}}"
- name: pr user email
run: echo "${{ github.event.pull_request.user.email}}"
- name: head user login
run: echo "${{ github.event.head.user.login }}"