File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,8 @@ permissions:
28
28
pull-requests : write
29
29
30
30
jobs :
31
- check-api-key :
31
+ translate :
32
32
runs-on : ubuntu-latest
33
- # Run when manually triggered OR scheduled OR when the commit message contains "Merge pull request"
34
- # if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || contains(github.event.head_commit.message, 'Merge pull request') }}
35
- outputs :
36
- api_key_exists : ${{ steps.check-api-key.outputs.api_key_exists }}
37
33
steps :
38
34
# Check if API key is available
39
35
- name : Check API key
@@ -43,17 +39,11 @@ jobs:
43
39
run : |
44
40
if [ -z "$API_KEY" ]; then
45
41
echo "OPENAI_API_KEY secret is not set. Skipping translation."
46
- echo "api_key_exists=false" >> $GITHUB_OUTPUT
42
+ exit 1
47
43
else
48
44
echo "OPENAI_API_KEY secret is available. Proceeding with translation."
49
- echo "api_key_exists=true" >> $GITHUB_OUTPUT
50
45
fi
51
46
52
- translate :
53
- runs-on : ubuntu-latest
54
- needs : check-api-key
55
- if : ${{ needs.check-api-key.outputs.api_key_exists == 'true' }}
56
- steps :
57
47
# Checkout the repository first to access local actions
58
48
- name : Checkout code
59
49
uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments