Поправил содержимое конфига
Some checks failed
Gitea Actions / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
p.belezov 2024-03-12 15:39:01 +08:00
parent 3ca664624f
commit 8fe58dd8fa

View File

@ -1,4 +1,4 @@
name: Gitea Actions Demo
name: Gitea Actions
run-name: ${{ gitea.actor }} is testing out Gitea Actions ??
on: [push]
@ -6,14 +6,23 @@ 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 }}."
- run: cd /home/resume
- run: echo "Stopping gitea service..."
- run: systemctl stop gitea
- run: echo "Gitea service stopped"
- run: echo "Pulling repo..."
- name: Check out repository code
uses: actions/checkout@v3
- 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 }}."
- run: echo "Repo pulled"
- run: echo "Updating npm dependencies..."
- run: npm i
- run: echo "NPM dependencies updated"
- run: echo "Updating composer dependencies..."
- run: composer install
- run: echo "Composer dependencies updated"
- run: echo "Building frontend..."
- run: npm run build
- run: echo "Frontend built"
- run: echo "Starting Gitea service"
- run: systemctl start gitea
- run: echo "Gitea service started"