Bump @typescript-eslint/parser from 5.54.0 to 5.59.8 #28
This file contains 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: Run test-ring-1 on comment | |
on: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
comment_trigger: | |
runs-on: ubuntu-latest | |
outputs: | |
triggerTestRing1: ${{ steps.check_comment.outputs.triggerTestRing1 }} | |
headSha: ${{ steps.check_comment.outputs.headSha }} | |
headRef: ${{ steps.check_comment.outputs.headRef }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: check_comment | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
shell: bash | |
run: | | |
comment_string="${{ github.event.comment.body }}" | |
integration_regex='^/test-ring-1' | |
echo "Checking comment: $comment_string" | |
if [[ "$comment_string" =~ $integration_regex ]]; then | |
echo "Match found - Triggering test ring 1" | |
echo "triggerTestRing1=true" >> $GITHUB_OUTPUT | |
else | |
echo "No match found - Not triggering" | |
echo "triggerTestRing1=false" >> $GITHUB_OUTPUT | |
fi | |
headInfo=$(gh pr view ${{ github.event.issue.number }} --json headRefName,headRefOid) | |
echo "Head Info: $headInfo" | |
echo "headSha=$(echo $headInfo | jq -r '.headRefOid')" >> $GITHUB_OUTPUT | |
echo "headRef=$(echo $headInfo | jq -r '.headRefName')" >> $GITHUB_OUTPUT | |
trigger-test-ring-1: | |
needs: comment_trigger | |
runs-on: ubuntu-latest | |
if: needs.comment_trigger.outputs.triggerTestRing1 == 'true' | |
steps: | |
- shell: bash | |
run: | | |
echo "Running test-ring-1" | |
echo "Head SHA: ${{ needs.comment_trigger.outputs.headSha }}" | |
echo "Head Ref: ${{ needs.comment_trigger.outputs.headRef }}" |