Bluesky app fork with some witchin' additions ๐Ÿ’ซ witchsky.app
bluesky fork client
122
fork

Configure Feed

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

add web hook, action tweaks (#8723)

authored by

hailey and committed by
GitHub
810918b4 4d210e33

+33 -9
+24 -9
.github/workflows/pull-request-comment.yml
··· 72 72 runs-on: ubuntu-latest 73 73 needs: [handle-comment] 74 74 if: needs.handle-comment.outputs.should-deploy == 'true' 75 - concurrency: 76 - group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}-deploy 77 - cancel-in-progress: true 78 75 79 76 steps: 77 + - name: Get PR HEAD SHA 78 + id: pr-info 79 + uses: actions/github-script@v7 80 + with: 81 + script: | 82 + const pr = await github.rest.pulls.get({ 83 + owner: context.repo.owner, 84 + repo: context.repo.repo, 85 + pull_number: ${{ github.event.issue.number }} 86 + }); 87 + 88 + console.log(`PR HEAD SHA: ${pr.data.head.sha}`); 89 + console.log(`PR HEAD REF: ${pr.data.head.ref}`); 90 + 91 + core.setOutput('head-sha', pr.data.head.sha); 92 + core.setOutput('head-ref', pr.data.head.ref); 93 + 80 94 - name: ๐Ÿ’ฌ Drop a comment 81 95 uses: marocchino/sticky-pull-request-comment@v2 82 96 with: 83 - header: pull-request-eas-build-${{ github.sha }} 97 + header: pull-request-eas-build-${{ steps.pr-info.outputs.head-sha }} 84 98 number: ${{ github.event.issue.number }} 85 99 message: | 86 - An OTA deployment has been requested and is now running... 100 + An OTA deployment has been requested and is now running for `${{ steps.pr-info.outputs.head-sha }}`. 87 101 88 102 [Here is some music to listen to while you wait...](https://www.youtube.com/watch?v=VBlFHuCzPgY) 89 103 --- ··· 98 112 99 113 - name: โฌ‡๏ธ Checkout 100 114 uses: actions/checkout@v4 115 + with: 116 + ref: ${{ steps.pr-info.outputs.head-sha }} 101 117 102 118 - name: ๐Ÿ”ง Setup Node 103 119 uses: actions/setup-node@v4 ··· 152 168 echo "SENTRY_RELEASE=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT 153 169 154 170 - name: ๐Ÿ—๏ธ Create Bundle 155 - run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_RELEASE=${{ steps.sentry.outputs.SENTRY_RELEASE }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} EXPO_PUBLIC_ENV="pull-request" yarn export 171 + run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_RELEASE=${{ steps.sentry.outputs.SENTRY_RELEASE }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} EXPO_PUBLIC_ENV="testflight" yarn export 156 172 157 173 - name: ๐Ÿ“ฆ Package Bundle and ๐Ÿš€ Deploy 158 174 run: yarn use-build-number bash scripts/bundleUpdate.sh ··· 161 177 CHANNEL_NAME: pull-request-${{ github.event.issue.number }} 162 178 RUNTIME_VERSION: 163 179 164 - 165 180 - name: ๐Ÿ’ฌ Drop a comment 166 181 uses: marocchino/sticky-pull-request-comment@v2 167 182 with: 168 - header: pull-request-eas-build-${{ github.sha }} 183 + header: pull-request-eas-build-${{ steps.pr-info.outputs.head-sha }} 169 184 number: ${{ github.event.issue.number }} 170 185 message: | 171 186 Your requested OTA deployment was successful! You may now apply it by opening the deep link below in your browser: ··· 179 194 uses: marocchino/sticky-pull-request-comment@v2 180 195 if: failure() 181 196 with: 182 - header: pull-request-eas-build-${{ github.sha }} 197 + header: pull-request-eas-build-${{ steps.pr-info.outputs.head-sha }} 183 198 number: ${{ github.event.issue.number }} 184 199 message: | 185 200 Your requested OTA deployment was unsuccessful. See action logs for more details.
+9
src/lib/hooks/useOTAUpdates.web.ts
··· 1 1 export function useOTAUpdates() {} 2 + export function useApplyPullRequestOTAUpdate() { 3 + return { 4 + tryApplyUpdate: () => {}, 5 + revertToEmbedded: () => {}, 6 + isCurrentlyRunningPullRequestDeployment: false, 7 + currentChannel: 'web-build', 8 + pending: false, 9 + } 10 + }