diff --git a/.github/workflows/build-extension.yml b/.github/workflows/build-extension.yml index 70e46b7afc8..d6374c4670e 100644 --- a/.github/workflows/build-extension.yml +++ b/.github/workflows/build-extension.yml @@ -20,8 +20,8 @@ jobs: with: access_token: ${{ github.token }} - update-pull-request-body: - name: Add links to built extensions + build-in-progress-message: + name: if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' runs-on: ubuntu-latest needs: @@ -29,10 +29,10 @@ jobs: steps: - uses: kyranjamie/pull-request-fixed-header@v1.0.1 with: - header: '> Try out this version of Leather — [download extension builds](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).' + header: '> _Building Leather…_' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build_chrome_extension: + build-chromium: name: Build debug Chrome extension runs-on: ubuntu-latest needs: @@ -64,7 +64,7 @@ jobs: name: leather-chromium path: leather-chromium.zip - build_firefox: + build-firefox: name: Build debug Firefox extension runs-on: ubuntu-latest needs: @@ -98,3 +98,17 @@ jobs: with: name: leather-firefox path: leather-firefox.zip + + add-download-link: + name: Add link to built extensions + if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' + runs-on: ubuntu-latest + needs: + - pre-run + - build-chromium + - build-firefox + steps: + - uses: kyranjamie/pull-request-fixed-header@v1.0.1 + with: + header: '> Try out this version of Leather — [download extension builds](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/app/components/app-version.tsx b/src/app/components/app-version.tsx index 695fd151036..21d416c9bb9 100644 --- a/src/app/components/app-version.tsx +++ b/src/app/components/app-version.tsx @@ -10,8 +10,6 @@ import { useIsLatestPullRequestBuild } from '@app/query/common/outdated-pr/outda import { Tooltip } from './tooltip'; -// Now I change the code and push so that the PR build is outdated - interface AppVersionLabelProps extends HTMLStyledProps<'span'> { isLatestVersion: boolean; } @@ -37,8 +35,6 @@ export function AppVersion() { const { pullRequestLink, isLatestBuild } = useIsLatestPullRequestBuild(); const version = useMemo(() => { - // eslint-disable-next-line no-console - console.log('process.env.WALLET_ENVIRONMENT', process.env.WALLET_ENVIRONMENT); switch (process.env.WALLET_ENVIRONMENT) { case 'development': return `dev@${BRANCH_NAME}`; diff --git a/src/app/query/common/outdated-pr/outdated-pr.query.ts b/src/app/query/common/outdated-pr/outdated-pr.query.ts index 712da35b39b..b1e7b60b98e 100644 --- a/src/app/query/common/outdated-pr/outdated-pr.query.ts +++ b/src/app/query/common/outdated-pr/outdated-pr.query.ts @@ -12,7 +12,6 @@ async function getPullRequestDetails(pr: string): Promise { const resp = await axios.get( `https://api.github.com/repos/${GITHUB_ORG}/${GITHUB_REPO}/pulls/${pr}` ); - return resp.data; } @@ -29,8 +28,6 @@ function usePullRequestDetailsQuery() { export function useIsLatestPullRequestBuild() { const { data: pullRequest } = usePullRequestDetailsQuery(); if (!pullRequest) return { isLatestBuild: true }; - // eslint-disable-next-line no-console - console.log('debug info', { fromGithubApi: pullRequest.head.sha, fromEnv: COMMIT_SHA }); return { // If the latest commit SHA on the PR is not the same one used for this build, // we can assume it's outdated