Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

test

test #164

Workflow file for this run

name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: npm install
- name: Build TypeScript
run: npm run build
- name: Commit build changes
id: current_sha
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add dist
if git diff --cached --quiet HEAD; then
echo "No changes to commit."
else
git commit -m "chore(build): Update dist [skip ci]"
fi
echo "current_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Update sample workflows and push
if: ${{ github.ref == 'refs/heads/main' }}
run: |
sed -i -r -e \
's/stainless-api\/build-sdk-action(\/?[^@]*)@.*/stainless-api\/build-sdk-action\1@${{ steps.current_sha.outputs.current_sha }}/g' \
README.md \
examples/*.yml
git add README.md
git add examples
if git diff --cached --quiet HEAD; then
echo "No changes to commit."
else
git commit -m "chore(build): Update sample workflow [skip ci]"
fi
git push