Skip to content

chore: 🐝 Update SDK - Generate 0.7.0 #90

chore: 🐝 Update SDK - Generate 0.7.0

chore: 🐝 Update SDK - Generate 0.7.0 #90

name: Restructure Speakeasy PR
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
jobs:
patch:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && contains(github.event.pull_request.title, 'Update SDK - Generate'))
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
fetch-depth: 0
- run: echo "Nothing to do! πŸŽ‰"
- name: Commit and push if files changed
run: |
if [ -n "$(git status --porcelain)" ]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "ci: restructure glean package to namespace structure"
git push origin HEAD:${{ github.head_ref || github.ref_name }}
else
echo "No changes detected"
fi