Repeated MySQL “Commands out of sync” errors triggered by Optimole during shutdown hook #254
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Add to project | |
| on: | |
| issues: | |
| types: [opened,transferred] | |
| jobs: | |
| add-to-project: | |
| name: Add issue to project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/add-to-project@main | |
| id: add_project | |
| with: | |
| project-url: ${{ secrets.PROJECT_PLANNING }} | |
| github-token: ${{ secrets.BOT_TOKEN_PROJECT }} | |
| - name: Set Team | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.BOT_TOKEN_PROJECT }} | |
| run: | | |
| gh api graphql -f query=' | |
| mutation( | |
| $project: ID! | |
| $item: ID! | |
| $status_field: ID! | |
| $status_value: String! | |
| ) { | |
| updateProjectV2ItemFieldValue( | |
| input: { | |
| projectId: $project | |
| itemId: $item | |
| fieldId: $status_field | |
| value: { | |
| singleSelectOptionId: $status_value | |
| } | |
| } | |
| ) { | |
| projectV2Item { | |
| id | |
| } | |
| } | |
| }' -f project=${{ secrets.PROJECT_PLANNING_ID }} -f item=${{ steps.add_project.outputs.itemId }} -f status_field=${{ secrets.PLANNING_TEAM_FIELD_ID }} -f status_value=29fe65ea --silent |