AWS Amplify Auth v1 to v2 migration fails 5-10% of the time, logs user out #637
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: Issue Comment | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
permissions: {} | |
if: ${{ !github.event.issue.pull_request }} | |
steps: | |
- name: Run webhook curl command | |
env: | |
WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }} | |
BODY: ${{ toJson(github.event.comment.body) }} | |
COMMENT_URL: ${{ github.event.comment.html_url }} | |
USER: ${{ github.event.comment.user.login }} | |
shell: bash | |
run: echo $BODY | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"body":"{}", "issue":"'$COMMENT_URL'", "user":"'$USER'"}' | |
adjust-labels: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ISSUE_NUMBER: ${{ github.event.issue.number }} | |
REPOSITORY_NAME: ${{ github.event.repository.full_name }} | |
steps: | |
- name: remove pending-community-response when new comment received | |
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && !github.event.issue.pull_request }} | |
shell: bash | |
run: | | |
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response" | |
- name: add pending-maintainer-response when new community comment received | |
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} | |
shell: bash | |
run: | | |
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-maintainer-response" | |
- name: remove pending-maintainer-response when new owner/member comment received | |
if: ${{ contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} | |
shell: bash | |
run: | | |
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-maintainer-response" | |