Skip to content

[Platform] Streamline message bag integration #1294

[Platform] Streamline message bag integration

[Platform] Streamline message bag integration #1294

Workflow file for this run

name: Run Examples
on:
pull_request:
types: [labeled]
#permissions:
# pull-requests: write
defaults:
run:
working-directory: examples
jobs:
run-examples:
if: github.event.label.name == 'Run examples'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
working-directory: "examples"
- name: Run OpenAI examples
id: run-examples
run: ./runner openai
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# - name: Remove label
# if: always()
# uses: actions/github-script@v7
# with:
# script: |
# await github.rest.issues.removeLabel({
# owner: context.repo.owner,
# repo: context.repo.repo,
# issue_number: context.issue.number,
# name: 'Run examples'
# });