From cf35f6035f4f4a355b91ac38c7c777923b0e8487 Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Mon, 8 Jul 2024 17:29:29 +0200 Subject: [PATCH] ci: update org name references, closes #5624 --- .github/workflows/build-extension.yml | 6 +- .github/workflows/chromatic.yml | 2 +- .github/workflows/development-extension.yml | 2 +- .github/workflows/notify-release.yml | 121 -------------------- .github/workflows/playwright.yml | 4 +- .github/workflows/publish-storybook.yml | 2 +- 6 files changed, 8 insertions(+), 129 deletions(-) delete mode 100644 .github/workflows/notify-release.yml diff --git a/.github/workflows/build-extension.yml b/.github/workflows/build-extension.yml index 21188702be2..3b7eb8705b4 100644 --- a/.github/workflows/build-extension.yml +++ b/.github/workflows/build-extension.yml @@ -18,7 +18,7 @@ jobs: run: echo "SHORT_SHA=`echo ${{ github.event.pull_request.head.sha }} | cut -c1-7`" >> $GITHUB_OUTPUT set-in-progress-message: - if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' + if: github.repository == 'leather-io/extension' && github.actor != 'dependabot[bot]' runs-on: ubuntu-latest needs: - sha-hash @@ -65,7 +65,7 @@ jobs: path: dist set-download-link: - if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' + if: github.repository == 'leather-io/extension' && github.actor != 'dependabot[bot]' runs-on: ubuntu-latest needs: - sha-hash @@ -84,7 +84,7 @@ jobs: - uses: kyranjamie/pull-request-fixed-header@v1.0.1 env: EXTENSION_BUILD_LINK: '[Extension build](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})' - TEST_REPORT_LINK: '[Test report](https://leather-wallet.github.io/playwright-reports/${{ env.BRANCH_NAME }})' + TEST_REPORT_LINK: '[Test report](https://leather-io.github.io/playwright-reports/${{ env.BRANCH_NAME }})' STORYBOOK_LINK: '[Storybook](https://${{ env.BRANCH_NAME }}--65982789c7e2278518f189e7.chromatic.com)' CHROMATIC_LINK: '[Chromatic](https://www.chromatic.com/library?appId=65982789c7e2278518f189e7&branch=${{ env.BRANCH_NAME }})' with: diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 42266537a66..4deec488630 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -4,7 +4,7 @@ on: [pull_request] jobs: chromatic: - if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' + if: github.repository == 'leather-io/extension' && github.actor != 'dependabot[bot]' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/development-extension.yml b/.github/workflows/development-extension.yml index 4d8e3985346..9ebbac976df 100644 --- a/.github/workflows/development-extension.yml +++ b/.github/workflows/development-extension.yml @@ -38,5 +38,5 @@ jobs: - uses: actions/upload-artifact@v3 name: Upload build artifact with: - name: leather-wallet + name: leather-io path: dist diff --git a/.github/workflows/notify-release.yml b/.github/workflows/notify-release.yml deleted file mode 100644 index 3dd8636cf3a..00000000000 --- a/.github/workflows/notify-release.yml +++ /dev/null @@ -1,121 +0,0 @@ -# Sends a notification to Discord whenever a new version of Leather is available in FireFox or Chrome stores -name: Notify on release - -on: - schedule: - # Run every hour - - cron: '0 * * * *' - -jobs: - firefox-notify: - runs-on: ubuntu-latest - steps: - - name: Get latest Firefox version - run: curl -s https://addons.mozilla.org/api/v5/addons/addon/leather-wallet/versions/ | jq -r '.results[0].version' > firefox_version - - - name: Upload latest Firefox version info - uses: actions/upload-artifact@v3 - with: - name: firefox_version - path: firefox_version - - - name: Download previous Firefox version info - uses: dawidd6/action-download-artifact@v6 - with: - workflow: notify-release.yml - workflow_conclusion: success - name: firefox_version - path: old - allow_forks: false - - - name: Determine if new version is live - id: firefox - run: | - NEWEST_VERSION=$(sort -V old/firefox_version firefox_version | tail -n 1) - LATEST_VERSION=$(cat firefox_version) - DIFF=$(diff old/firefox_version firefox_version || true) - if [[ -n "${DIFF}" && ${NEWEST_VERSION} == ${LATEST_VERSION} ]]; then - echo "::warning::New Firefox version detected: ${LATEST_VERSION}" - echo "::set-output name=is_new::true" - echo "::set-output name=new_version::${LATEST_VERSION}" - else - echo "::warning::No new Firefox version detected" - fi - - - name: Firefox Discord notification - userx - if: steps.firefox.outputs.is_new - uses: Ilshidur/action-discord@f1ed8844d9b33c17221fab0f36672cde39800eed - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_LEATHER_WEBHOOK }} - DISCORD_USERNAME: Leather Team - DISCORD_AVATAR: 'https://i.imgur.com/z9Iy6ug.png' - DISCORD_EMBEDS: | - [{ - "title": "Leather for Firefox", - "url": "https://addons.mozilla.org/en-US/firefox/addon/leather-wallet/" - }] - with: - args: ':rocket: A new version (${{ steps.firefox.outputs.new_version }}) of Leather is available on the Firefox Web Store!' - - chrome-notify: - runs-on: ubuntu-latest - steps: - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: 14.x - - name: Get latest Chrome version - run: | - npm install chrome-webstore - node < chrome_version - var webstore = require('chrome-webstore') - ;(async () => { - var webstore_api_version = await webstore.version() - var details = await webstore.detail({id: '${{ secrets.CHROME_APP_ID }}', version: webstore_api_version}) - console.log(details.version) - })() - EOF - - - name: Upload latest Chrome version info - uses: actions/upload-artifact@v3 - with: - name: chrome_version - path: chrome_version - - - name: Download previous Chrome version info - uses: dawidd6/action-download-artifact@v6 - with: - workflow: notify-release.yml - workflow_conclusion: success - name: chrome_version - path: old - allow_forks: false - - - name: Determine if new version is live - id: chrome - run: | - NEWEST_VERSION=$(sort -V old/chrome_version chrome_version | tail -n 1) - LATEST_VERSION=$(cat chrome_version) - DIFF=$(diff old/chrome_version chrome_version || true) - if [[ -n "${DIFF}" && ${NEWEST_VERSION} == ${LATEST_VERSION} ]]; then - echo "::warning::New Chrome version detected: ${LATEST_VERSION}" - echo "::set-output name=is_new::true" - echo "::set-output name=new_version::${LATEST_VERSION}" - else - echo "::warning::No new Chrome version detected" - fi - - - name: Chrome Discord notification - userx - if: steps.chrome.outputs.is_new - uses: Ilshidur/action-discord@f1ed8844d9b33c17221fab0f36672cde39800eed - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_LEATHER_WEBHOOK }} - DISCORD_USERNAME: Leather Team - DISCORD_AVATAR: 'https://i.imgur.com/z9Iy6ug.png' - DISCORD_EMBEDS: | - [{ - "title": "Leather for Chrome", - "url": "https://chrome.google.com/webstore/detail/leather/ldinpeekobnhjjdofggfgjlcehhmanlj" - }] - with: - args: ':rocket: A new version (${{ steps.chrome.outputs.new_version }}) of Leather is available on the Chrome Web Store!' diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 7af12cc6c08..571dadd554e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -111,7 +111,7 @@ jobs: action: peaceiris/actions-gh-pages@v3 with: | personal_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} - external_repository: leather-wallet/playwright-reports + external_repository: leather-io/playwright-reports publish_branch: main publish_dir: ./playwright-report destination_dir: ${{ steps.extract_branch.outputs.branch }} @@ -121,7 +121,7 @@ jobs: if: steps.extract_branch.outputs.branch == 'dev' with: personal_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} - external_repository: leather-wallet/specs.leather.io + external_repository: leather-io/specs.leather.io publish_branch: main publish_dir: ./playwright-report cname: specs.leather.io diff --git a/.github/workflows/publish-storybook.yml b/.github/workflows/publish-storybook.yml index 7a01a0b9a10..5cc8a9057b6 100644 --- a/.github/workflows/publish-storybook.yml +++ b/.github/workflows/publish-storybook.yml @@ -28,7 +28,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: personal_token: ${{ secrets.LEATHER_BOT }} - external_repository: leather-wallet/storybook + external_repository: leather-io/storybook publish_branch: main publish_dir: ./storybook-static cname: storybook.leather.io