Compare commits

9 Commits

Author SHA1 Message Date
bd0a84c3fa Remove tests
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 4s
2025-03-03 11:54:42 -06:00
4eec21fdec Make sure it works on push...
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 4s
2025-03-03 11:53:35 -06:00
78876a9aa6 Try a script?
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 8s
2025-03-03 11:53:04 -06:00
7ed22de9e4 Sender
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 3s
2025-03-03 11:48:28 -06:00
cfbacd197b More
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 3s
2025-03-03 10:36:28 -06:00
89169ca747 Restrict branches for events
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 4s
2025-03-03 10:35:29 -06:00
046fca2d27 Try some more stuff
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
2025-03-03 10:33:48 -06:00
b5dcbc2f7f Run on PR and manually
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 4s
2025-03-03 10:30:47 -06:00
b6f519c30e Try to figure out what we can do for PRs
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2025-03-03 10:29:39 -06:00

View File

@ -1,11 +1,26 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
id: get-mail
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
return (await github.rest.users.getByUsername({
username: ${{ tojson(github.event.sender.login) }}
})).data.email;
result-encoding: string
- 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 }}."
@ -21,5 +36,9 @@ jobs:
run: echo "${{ github.event.commits[0].author.name }}"
- name: commits[0] author email
run: echo "${{ github.event.commits[0].author.email }}"
- name: head user login
run: echo "${{ github.event.head.user.login }}"
- name: head_commit author email
run: echo "${{ github.event.head_commit.author.email }}"
- name: event sender
run: echo "${{ github.event.sender.email }}"
- name: script email
run: echo ${{ steps.get-mail.outputs.result }}