From c26bef9c0d9400d329ee302690e8cce5e7ce322c Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Fri, 24 Jun 2022 15:08:04 -0400 Subject: [PATCH] build: Run size-limit action on master We need to run size-limit on master so that we upload size assets that we can do comparisons with. --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e7569e14429..49e64a1ce171 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,7 +58,7 @@ jobs: echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $COMMIT_SHA)" >> $GITHUB_ENV outputs: - commit_label: "${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}" + commit_label: '${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}' job_install_deps: name: Install Dependencies @@ -66,7 +66,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - name: "Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})" + - name: 'Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})' uses: actions/checkout@v2 with: ref: ${{ env.HEAD_COMMIT }} @@ -93,7 +93,7 @@ jobs: job_build: name: Build - needs: [ job_get_metadata, job_install_deps ] + needs: [job_get_metadata, job_install_deps] runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -177,7 +177,7 @@ jobs: timeout-minutes: 15 runs-on: ubuntu-latest # Size Check will error out outside of the context of a PR - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' }} || ${{ startsWith(github.ref, 'refs/heads/master/') }} steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) uses: actions/checkout@v2