diff --git a/.github/workflows/pr-artifacts-flow.yml b/.github/workflows/pr-artifacts-flow.yml index 624662f..4782f42 100644 --- a/.github/workflows/pr-artifacts-flow.yml +++ b/.github/workflows/pr-artifacts-flow.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize tachometer comment - uses: andrewiggins/tachometer-reporter-action@allow-globs + uses: andrewiggins/tachometer-reporter-action@main with: initialize: true @@ -54,6 +54,6 @@ jobs: - run: ls -al - run: ls -al results - name: Report Tachometer Results - uses: andrewiggins/tachometer-reporter-action@allow-globs + uses: andrewiggins/tachometer-reporter-action@main with: path: results/*.json diff --git a/.github/workflows/pr-multi-init.yml b/.github/workflows/pr-multi-init.yml index 74d7d6e..76cac7d 100644 --- a/.github/workflows/pr-multi-init.yml +++ b/.github/workflows/pr-multi-init.yml @@ -20,7 +20,7 @@ jobs: # Could use this to simulate benchmark running for random number of seconds echo $((($RANDOM%(5000-1000))+1000)) - name: Report Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/test-results.json initialize: true # Should work without report-id @@ -32,7 +32,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Report Other Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/other-results.json initialize: false diff --git a/.github/workflows/pr-multi-measure-setup-job.yml b/.github/workflows/pr-multi-measure-setup-job.yml index f6e470e..2f95863 100644 --- a/.github/workflows/pr-multi-measure-setup-job.yml +++ b/.github/workflows/pr-multi-measure-setup-job.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize tachometer comment - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: initialize: true @@ -27,7 +27,7 @@ jobs: # Could use this to simulate benchmark running for random number of seconds echo $((($RANDOM%(5000-1000))+1000)) - name: Report Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/multi-measure-results.json report-id: multi-bench-1 @@ -41,7 +41,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Report Other Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/multi-measure-other-results.json report-id: multi-bench-2 diff --git a/.github/workflows/pr-multi-measure-summarize-job.yml b/.github/workflows/pr-multi-measure-summarize-job.yml index 662fded..21b6da9 100644 --- a/.github/workflows/pr-multi-measure-summarize-job.yml +++ b/.github/workflows/pr-multi-measure-summarize-job.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize tachometer comment - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: initialize: true @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Report Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/multi-measure-results.json report-id: multi-bench-1 @@ -40,7 +40,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Report Other Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/multi-measure-names.json report-id: multi-measure-names diff --git a/.github/workflows/pr-setup-job.yml b/.github/workflows/pr-setup-job.yml index b5f159f..1140e0a 100644 --- a/.github/workflows/pr-setup-job.yml +++ b/.github/workflows/pr-setup-job.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize tachometer comment - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: initialize: true @@ -32,7 +32,7 @@ jobs: # Could use this to simulate benchmark running for random number of seconds echo $((($RANDOM%(5000-1000))+1000)) - name: Report Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/test-results.json report-id: test-bench-1 @@ -46,7 +46,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Report Other Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/other-results.json report-id: test-bench-2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a70cc44..99a461f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ on: - "**" push: branches: - - master + - main jobs: test: @@ -27,7 +27,7 @@ jobs: pr-bench-name: local-framework base-bench-name: base-framework - master: + main: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -37,7 +37,7 @@ jobs: - run: npm ci - run: npm run test:coverage - name: Report Other Tachometer Result - uses: andrewiggins/tachometer-reporter-action@master + uses: andrewiggins/tachometer-reporter-action@main with: path: tests/results/other-results.json report-id: other-results diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 71ca9e0..baf2f21 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,5 +45,5 @@ Acquiring comment lock uses a state machine. See comments in comments.js for det 3. Create release in GitHub with notes on changes 4. Check out new tag (e.g. "v2.1.0") 5. Move major version to new tag (e.g. "v2"): - - `git push origin :refs/tags/; git tag -fa ; git push origin master --tags` + - `git push origin :refs/tags/; git tag -fa ; git push origin main --tags` - Message for major tag should be something like `Latest release of the v2 line` diff --git a/dist/util.js b/dist/util.js index e4c0cb3..f3ef333 100644 --- a/dist/util.js +++ b/dist/util.js @@ -10920,7 +10920,7 @@ function Summary({ , usesDefaults && [ " ", h('a', { - href: "https://github.com/andrewiggins/tachometer-reporter-action/blob/master/README.md#summary", + href: "https://github.com/andrewiggins/tachometer-reporter-action/blob/main/README.md#summary", target: "_blank",} , "Customize summary" @@ -16204,7 +16204,7 @@ var escapeStringRegexp = string => { }; const fullVersion = `v${ - "2.2.0" + "2.3.0" }`; const majorVersion = ` v${ 2 diff --git a/src/getCommentBody.js b/src/getCommentBody.js index 9a85d4e..b98fea8 100644 --- a/src/getCommentBody.js +++ b/src/getCommentBody.js @@ -380,7 +380,7 @@ function Summary({ {usesDefaults && [ " ", Customize summary diff --git a/tests/mocks/github.js b/tests/mocks/github.js index a893754..2ad59b9 100644 --- a/tests/mocks/github.js +++ b/tests/mocks/github.js @@ -12,7 +12,7 @@ const workflow = { url: "https://api.github.com/repos/andrewiggins/tachometer-reporter-action/actions/workflows/1850458", html_url: - "https://github.com/andrewiggins/tachometer-reporter-action/blob/master/.github/workflows/pr.yml", + "https://github.com/andrewiggins/tachometer-reporter-action/blob/main/.github/workflows/pr.yml", badge_url: "https://github.com/andrewiggins/tachometer-reporter-action/workflows/Pull%20Request%20Test/badge.svg", };