File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,18 @@ inputs:
60
60
runs :
61
61
using : " composite"
62
62
steps :
63
+ - name : Check if repository is already checked out
64
+ id : check_repo
65
+ shell : bash
66
+ run : |
67
+ if [ -d ".git" ]; then
68
+ echo "already_checked_out=true" >> $GITHUB_OUTPUT
69
+ else
70
+ echo "already_checked_out=false" >> $GITHUB_OUTPUT
71
+ fi
72
+
63
73
- name : Checkout code
74
+ if : steps.check_repo.outputs.already_checked_out != 'true'
64
75
uses : actions/checkout@v3
65
76
with :
66
77
fetch-depth : 0 # Fetch all history for proper timestamp lookup
Original file line number Diff line number Diff line change 28
28
# Run when manually triggered OR scheduled OR when the commit message contains "Merge pull request"
29
29
if : ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || contains(github.event.head_commit.message, 'Merge pull request') }}
30
30
steps :
31
+ # Checkout the repository first to access local actions
32
+ - name : Checkout code
33
+ uses : actions/checkout@v3
34
+ with :
35
+ fetch-depth : 0 # Fetch all history for proper timestamp lookup
36
+
31
37
# Use the translate-docs-action
32
38
- name : Translate documentation
33
39
uses : ./.github/actions/translate-docs
You can’t perform that action at this time.
0 commit comments