Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: get commit sha failed in translate action (#7959)
Joelc2a3c5a748ca
diff --git a/.github/workflows/translate-i18n-base-on-english.yml b/.github/workflows/translate-i18n-base-on-english.ymlindex 5b63306ef57..3f51b3b2c79 100644--- a/.github/workflows/translate-i18n-base-on-english.yml+++ b/.github/workflows/translate-i18n-base-on-english.yml@@ -15,12 +15,14 @@ jobs:steps:- uses: actions/checkout@v4with:- fetch-depth: 0+ fetch-depth: 2 # last 2 commits- name: Check for file changes in i18n/en-USid: check_filesrun: |- changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- 'i18n/en-US/*.ts')+ recent_commit_sha=$(git rev-parse HEAD)+ second_recent_commit_sha=$(git rev-parse HEAD~1)+ changed_files=$(git diff --name-only $recent_commit_sha $second_recent_commit_sha -- 'i18n/en-US/*.ts')echo "Changed files: $changed_files"if [ -n "$changed_files" ]; thenecho "FILES_CHANGED=true" >> $GITHUB_ENV