The open-source agent harness - the runtime layer that turns an LLM into a working agent.
feat: add deploy-devtest-approval workflow for ha/emit-pause branch (#922)
Chirag Jain94f64c28db60
diff --git a/.github/workflows/deploy-devtest-approval.yml b/.github/workflows/deploy-devtest-approval.ymlnew file mode 100644index 000000000..c3702559f--- /dev/null+++ b/.github/workflows/deploy-devtest-approval.yml@@ -0,0 +1,59 @@+name: Sync commit to trueforge-devtest-deployment approval++on:+ workflow_dispatch:+ push:+ branches: [ha/emit-pause]++concurrency:+ group: deploy-devtest-approval+ cancel-in-progress: true++permissions:+ contents: read++jobs:+ sync:+ name: Pin SHA and push+ runs-on: ubuntu-latest+ steps:+ - id: app-token+ uses: actions/create-github-app-token@v3+ with:+ client-id: ${{ secrets.TRUEFORGE_GENERATE_SDK_APP_ID }}+ private-key: ${{ secrets.TRUEFORGE_GENERATE_SDK_APP_PRIVATE_KEY }}+ owner: truefoundry+ repositories: trueforge-devtest-deployment++ - uses: actions/checkout@v7+ with:+ repository: truefoundry/trueforge-devtest-deployment+ token: ${{ steps.app-token.outputs.token }}++ - name: Install yq+ run: |+ sudo wget -q https://github.com/mikefarah/yq/releases/download/v4.53.3/yq_linux_amd64 -O /usr/bin/yq+ sudo chmod +x /usr/bin/yq++ - name: Pin trueforge SHA and push+ env:+ SHA: ${{ github.sha }}+ BRANCH: ${{ github.ref_name }}+ APP_SLUG: ${{ steps.app-token.outputs.app-slug }}+ run: |+ set -euo pipefail+ yq -i '+ .image.build_source.ref = strenv(SHA) |+ .image.build_source.branch_name = strenv(BRANCH)+ ' trueforge-approval.truefoundry.yaml++ git config user.name "${APP_SLUG}[bot]"+ git config user.email "${APP_SLUG}[bot]@users.noreply.github.com"+ git add trueforge-approval.truefoundry.yaml+ if git diff --cached --quiet; then+ echo "Already pinned at $SHA"+ exit 0+ fi+ git commit -m "chore: pin trueforge-approval@${SHA}"+ git push+ echo "Pinned trueforge-approval@\`$SHA\` on ha/emit-pause" >> "$GITHUB_STEP_SUMMARY"