Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
checks / Check & Test (Frontend + Backend) (push) Failing after 1s
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Failing after 0s
checks / Check & Test (Frontend + Backend) (pull_request) Failing after 1s
49 lines
1.3 KiB
YAML
49 lines
1.3 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: Install Node.js, npm, and Yarn
|
|
run: |
|
|
apt update
|
|
apt install -y curl
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
|
apt install -y nodejs
|
|
npm install -g yarn
|
|
|
|
- name: Checkout repository manually
|
|
env:
|
|
TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
CLONE_URL: ${{ vars.CLONE_URL }}
|
|
run: |
|
|
echo "Cloning from $CLONE_URL"
|
|
echo "Cloning ALL_REPO_TOKEN $ALL_REPO_TOKEN"
|
|
CLONE_URL_WITH_AUTH=$(echo "$CLONE_URL" | sed "s#https://#https://$ALL_REPO_TOKEN@#")
|
|
git clone "$CLONE_URL_WITH_AUTH" .
|
|
|
|
- name: List repo files and dependencies versions
|
|
run: |
|
|
ls .
|
|
node -v
|
|
npm -v
|
|
yarn -v
|
|
|
|
- name: Done
|
|
run: echo "Workflow finished."
|