feat(examples): enable history tests in most examples #227
Workflow file for this run
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: Cleanup PR Log Groups | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - main | |
| permissions: | |
| contents: read # This is required for actions/checkout | |
| jobs: | |
| cleanup-logs: | |
| if: github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write # Required for AWS credentials | |
| steps: | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: "${{ secrets.ACTIONS_WEBHOOK_ROLE_ARN }}" | |
| role-session-name: "GitHub-PR-${{ github.event.pull_request.number }}-Cleanup" | |
| aws-region: ${{ vars.AWS_REGION }} | |
| - name: Install awscurl | |
| run: pip install awscurl | |
| - name: Cleanup PR log group | |
| run: | | |
| awscurl --service execute-api \ | |
| --region ${{ vars.AWS_REGION }} \ | |
| -X POST \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"logGroupSuffix": "-NodeJS-PR-${{ github.event.pull_request.number }}"}' \ | |
| "${{ secrets.LOG_GROUP_CLEANUP_WEBHOOK }}" |