Files
my-app/.gitea/workflows/demo.yaml
Patrick fb7237e248
Some checks failed
checks / Check & Test (Frontend + Backend) (push) Failing after 3s
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Failing after 0s
checks / Check & Test (Frontend + Backend) (pull_request) Failing after 2s
clone url up
2025-10-29 13:47:54 +01:00

45 lines
1.1 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Info
run: |
echo "Triggered by ${{ gitea.event_name }} event"
echo "Branch: ${{ gitea.ref }}"
echo "Repository: ${{ gitea.repository }}"
#- name: Checkout repository
# uses: actions/checkout@v4
#- name: Checkout repository manually
# run: |
# git clone ${{ gitea.repository.clone_url }}
- name: Checkout repository manually
env:
TOKEN: ${{ secrets.ACCESS_TOKEN }}
CLONE_URL: ${{ vars.CLONE_URL }}
run: |
echo "Cloning from $CLONE_URL"
CLONE_URL_WITH_AUTH=$(echo "$CLONE_URL" | sed "s#https://#https://$TOKEN@#")
git clone "$CLONE_URL_WITH_AUTH" .
#hff8h7ez9w646 r68jnfuz6337rbfz6r8uendu6e638ejdndubzd6e6378rnf7r64
- name: List repo files
run: ls .
- name: Done
run: echo "Workflow finished."