Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix action (#8715)

authored by

hailey and committed by
GitHub
101b3262 1ee91d2c

+41 -39
+41 -39
.github/workflows/pull-request-comment.yml
··· 12 12 outputs: 13 13 should-deploy: ${{ steps.check-org.outputs.result }} 14 14 15 - steps: 16 - - name: Check if bot is mentioned 17 - id: check-mention 18 - run: | 19 - if [[ "${{ github.event.comment.body }}" == *"@github-actions"* ]] || \ 20 - [[ "${{ github.event.comment.body }}" == *"github-actions[bot]"* ]]; then 21 - bot_mentioned=true 22 - else 23 - bot_mentioned=false 24 - fi 15 + steps: 16 + - name: Check if bot is mentioned 17 + id: check-mention 18 + env: 19 + COMMENT: ${{ github.event.comment.body }} 20 + run: | 21 + if [[ "$TITLE" == *"@github-actions"* ]] || \ 22 + [[ "$TITLE" == *"github-actions[bot]"* ]]; then 23 + bot_mentioned=true 24 + else 25 + bot_mentioned=false 26 + fi 25 27 26 28 27 - if [[ "${{ github.event.comment.body }}" == *"ota"* ]]; then 28 - has_ota=true 29 - else 30 - has_ota=false 31 - fi 29 + if [[ "${{ github.event.comment.body }}" == *"ota"* ]]; then 30 + has_ota=true 31 + else 32 + has_ota=false 33 + fi 32 34 33 35 34 - if [[ "$bot_mentioned" == "true" ]] && [[ "$has_ota" == "true" ]]; then 35 - echo "mentioned=true" >> $GITHUB_OUTPUT 36 - else 37 - echo "mentioned=false" >> $GITHUB_OUTPUT 38 - fi 36 + if [[ "$bot_mentioned" == "true" ]] && [[ "$has_ota" == "true" ]]; then 37 + echo "mentioned=true" >> $GITHUB_OUTPUT 38 + else 39 + echo "mentioned=false" >> $GITHUB_OUTPUT 40 + fi 39 41 40 - - name: Check organization membership 41 - if: steps.check-mention.outputs.mentioned == 'true' 42 - id: check-org 43 - uses: actions/github-script@v7 44 - with: 45 - script: | 46 - try { 47 - const { data: perm } = await github.rest.repos.getCollaboratorPermissionLevel({ 48 - owner: context.repo.owner, 49 - repo: context.repo.repo, 50 - username: context.payload.comment.user.login 51 - }); 42 + - name: Check organization membership 43 + if: steps.check-mention.outputs.mentioned == 'true' 44 + id: check-org 45 + uses: actions/github-script@v7 46 + with: 47 + script: | 48 + try { 49 + const { data: perm } = await github.rest.repos.getCollaboratorPermissionLevel({ 50 + owner: context.repo.owner, 51 + repo: context.repo.repo, 52 + username: context.payload.comment.user.login 53 + }); 52 54 53 - const hasAccess = ['admin', 'write'].includes(perm.permission); 54 - console.log(`User has ${perm.permission} access`); 55 + const hasAccess = ['admin', 'write'].includes(perm.permission); 56 + console.log(`User has ${perm.permission} access`); 55 57 56 - return hasAccess; 57 - } catch(error) { 58 - console.log('User has no repository access'); 59 - return false; 60 - } 58 + return hasAccess; 59 + } catch(error) { 60 + console.log('User has no repository access'); 61 + return false; 62 + } 61 63 62 64 bundle-deploy: 63 65 name: Bundle and Deploy EAS Update