avoid crashing if no source file
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 10s

This commit is contained in:
2026-01-19 20:48:49 +00:00
parent f62e6ca651
commit 9cb1418b0d
+2 -4
View File
@@ -19,17 +19,15 @@ jobs:
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: restore git folder if exist - name: restore git folder if exist
run: cp -r /opt/hostedtoolcache/${{ github.event.repository.name }}/ ${{ gitea.workspace }} run: cp -r /opt/hostedtoolcache/${{ github.event.repository.name }}/ ${{ gitea.workspace }} 2>/dev/null
- name: Check Docker Version - name: Check Docker Version
run: whereis docker run: whereis docker
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: List files in the repository - name: List files in the repository
run: | run: |