Поправил содержимое конфига
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 ?? run-name: ${{ gitea.actor }} is testing out Gitea Actions ??
on: [push] on: [push]
@ -6,14 +6,23 @@ jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "?? The job was automatically triggered by a ${{ gitea.event_name }} event." - run: cd /home/resume
- run: echo "?? This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "Stopping gitea service..."
- run: echo "?? The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - run: systemctl stop gitea
- run: echo "Gitea service stopped"
- run: echo "Pulling repo..."
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- run: echo "?? The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "Repo pulled"
- run: echo "??? The workflow is now ready to test your code on the runner." - run: echo "Updating npm dependencies..."
- name: List files in the repository - run: npm i
run: | - run: echo "NPM dependencies updated"
ls ${{ gitea.workspace }} - run: echo "Updating composer dependencies..."
- run: echo "?? This job's status is ${{ job.status }}." - 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"