name: Cypress Add Known failed tests on: issues: types: [opened, closed, reopened] jobs: IssueOpened: if: (github.event.action == 'opened' || github.event.action == 'reopened') && contains( github.event.issue.labels.*.name, 'CI impacted') runs-on: ubuntu-latest permissions: issues: write steps: - name: Checkout the merged commit from PR and base branch uses: actions/checkout@v2 - name: View issue information env: GITHUB_CONTEXT: ${{ toJson(github) }} XATATOKEN: ${{ secrets.XATA_TOKEN }} ISSUE_TITLE: ${{ github.event.issue.title }} ISSUE_BODY: ${{ github.event.issue.body }} run: | echo "Issue title: $ISSUE_TITLE" echo "Issue body: $ISSUE_BODY" #echo "$GITHUB_CONTEXT" chmod a+x app/client/cypress/xataadd.sh echo "$ISSUE_TITLE"|awk '{print $2}' echo "$ISSUE_TITLE"|awk '{print $2}'|xargs app/client/cypress/xataadd.sh IssueClosed: if: github.event.action == 'closed' && contains( github.event.issue.labels.*.name, 'CI impacted') runs-on: ubuntu-latest permissions: issues: write steps: - name: Checkout the merged commit from PR and base branch uses: actions/checkout@v2 - name: View issue information env: GITHUB_CONTEXT: ${{ toJson(github) }} XATATOKEN: ${{ secrets.XATA_TOKEN }} ISSUE_TITLE: ${{ github.event.issue.title }} ISSUE_BODY: ${{ github.event.issue.body }} run: | echo "Issue title: $ISSUE_TITLE" echo "Issue body: $ISSUE_BODY" #echo "$GITHUB_CONTEXT" chmod a+x app/client/cypress/xatadel.sh echo "$ISSUE_TITLE"|awk '{print $2}'|xargs app/client/cypress/xatadel.sh