-
Notifications
You must be signed in to change notification settings - Fork 558
ci: update some actions to the latest version #25857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tylerbutler
wants to merge
6
commits into
microsoft:main
Choose a base branch
from
tylerbutler:ci-upgrade-upload-artifact
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+150
−96
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8290d0e
ci: update some actions to the latest version
tylerbutler 45ae2c0
missed a couple
tylerbutler 356911c
Apply suggestions from code review
tylerbutler b88e87f
Update labeler config for v6 compatibility
tylerbutler 3f08cb6
Merge upstream main
tylerbutler 3b49d51
Merge remote-tracking branch 'upstream/main' into ci-upgrade-upload-a…
tylerbutler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,8 @@ jobs: | |
| persist-credentials: false | ||
|
|
||
| - name: Download results | ||
| uses: dawidd6/action-download-artifact@bd10f381a96414ce2b13a11bfa89902ba7cea07f # ratchet:dawidd6/[email protected] | ||
| # release notes: https://github.com/dawidd6/action-download-artifact/releases/tag/v11 | ||
| uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # ratchet:dawidd6/action-download-artifact@v11 | ||
| with: | ||
| workflow: pr-check-changeset.yml | ||
| run_id: ${{ github.event.workflow_run.id }} | ||
|
|
@@ -37,17 +38,17 @@ jobs: | |
|
|
||
| - name: Required but missing | ||
| if: fromJson(steps.changeset.outputs.CHANGESET).required == true && fromJson(steps.changeset.outputs.CHANGESET).changesetFound == false | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0 | ||
| uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0 | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4 | ||
| uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: changeset | ||
| number: ${{ fromJson(steps.changeset.outputs.CHANGESET).pr }} | ||
| path: ${{ github.workspace }}/.github/workflows/data/changeset-missing.md | ||
|
|
||
| - name: Required and present | ||
| if: fromJson(steps.changeset.outputs.CHANGESET).required == true && fromJson(steps.changeset.outputs.CHANGESET).changesetFound == true | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0 | ||
| uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0 | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4 | ||
| uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: changeset | ||
| number: ${{ fromJson(steps.changeset.outputs.CHANGESET).pr }} | ||
|
|
@@ -57,8 +58,8 @@ jobs: | |
|
|
||
| - name: Changeset not required | ||
| if: fromJson(steps.changeset.outputs.CHANGESET).required == false && fromJson(steps.changeset.outputs.CHANGESET).changesetFound == true | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0 | ||
| uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0 | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4 | ||
| uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: changeset | ||
| number: ${{ fromJson(steps.changeset.outputs.CHANGESET).pr }} | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,16 +7,17 @@ on: | |
|
|
||
| permissions: | ||
| contents: read | ||
| actions: read # for dawidd6/action-download-artifact to query and download artifacts | ||
| actions: read # for dawidd6/action-download-artifact to query and download artifacts | ||
|
|
||
| jobs: | ||
| load_report: | ||
| permissions: | ||
| pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment | ||
| pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Download results | ||
| uses: dawidd6/action-download-artifact@bd10f381a96414ce2b13a11bfa89902ba7cea07f # ratchet:dawidd6/[email protected] | ||
| # release notes: https://github.com/dawidd6/action-download-artifact/releases/tag/v11 | ||
| uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # ratchet:dawidd6/action-download-artifact@v11 | ||
| with: | ||
| workflow: website-validation.yml | ||
| # workflow_conclusion: completed | ||
|
|
@@ -28,8 +29,8 @@ jobs: | |
| run: echo "pr=$(cat pr)" >> $GITHUB_OUTPUT | ||
| working-directory: ./results | ||
| - name: Post report in comment | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0 | ||
| uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0 | ||
| # release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4 | ||
| uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: linkreport | ||
| recreate: true | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,9 @@ jobs: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # ratchet:errata-ai/[email protected] | ||
|
|
||
| # release notes: https://github.com/errata-ai/vale-action/releases/tag/v2.1.1 | ||
| - uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # ratchet:errata-ai/vale-action@v2 | ||
| with: | ||
| files: .changeset | ||
| vale_flags: "--glob=*-*-*.md" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,12 +5,12 @@ on: | |
| branches: [main, next, release/**/*] | ||
|
|
||
| permissions: | ||
| contents: read # for actions/labeler to determine modified files | ||
| contents: read # for actions/labeler to determine modified files | ||
|
|
||
| jobs: | ||
| areas_label: | ||
| permissions: | ||
| pull-requests: write # for actions/labeler to add labels to PRs | ||
| pull-requests: write # for actions/labeler to add labels to PRs | ||
| runs-on: ubuntu-latest | ||
| name: Label areas | ||
| # Skip labeling main-next merge PRs. The area labels are noisy and distracting for main-next PRs because they can | ||
|
|
@@ -20,7 +20,8 @@ jobs: | |
| # This is implemented by comparing the PR title because at creation time, the PR has no labels (and the GItHub API | ||
| # does not have a way to set labels at creation either), so skipping based on labels does not work. | ||
| steps: | ||
| - uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4 # ratchet:actions/[email protected] | ||
| # release notes: https://github.com/actions/labeler/releases/tag/v6.0.1 | ||
| - uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # ratchet:actions/labeler@v6 | ||
| if: "github.event.pull_request.title != 'Automation: main-next integrate'" | ||
| with: | ||
| configuration-path: ".github/labeler-areas.yml" | ||
|
|
@@ -30,21 +31,23 @@ jobs: | |
| # this CI job calls the labeler action wuth sync-labels=false, so the label won't be removed automatically. | ||
| changesets_label: | ||
| permissions: | ||
| pull-requests: write # for actions/labeler to add labels to PRs | ||
| pull-requests: write # for actions/labeler to add labels to PRs | ||
| runs-on: ubuntu-latest | ||
| name: Label changeset-required | ||
| steps: | ||
| - uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4 # ratchet:actions/[email protected] | ||
| # release notes: https://github.com/actions/labeler/releases/tag/v6.0.1 | ||
| - uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # ratchet:actions/labeler@v6 | ||
| with: | ||
| configuration-path: ".github/labeler-changesets.yml" | ||
| repo-token: "${{ github.token }}" | ||
| sync-labels: false # The changeset-required label is often added manually, so don't remove it. | ||
| branches_label: | ||
| permissions: | ||
| pull-requests: write # for actions/labeler to add labels to PRs | ||
| pull-requests: write # for actions/labeler to add labels to PRs | ||
| runs-on: ubuntu-latest | ||
| name: Label base branches and external contributors | ||
| steps: | ||
| - uses: srvaroa/labeler@9c29ad1ef33d169f9ef33c52722faf47a566bcf3 # ratchet:srvaroa/labeler@v1 | ||
| # release notes: https://github.com/srvaroa/labeler/releases/tag/v1.13.0 | ||
| - uses: srvaroa/labeler@0a20eccb8c94a1ee0bed5f16859aece1c45c3e55 # ratchet:srvaroa/labeler@v1 | ||
| env: | ||
| GITHUB_TOKEN: "${{ github.token }}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,9 @@ jobs: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: mszostok/codeowners-validator@7f3f5e28c6d7b8dfae5731e54ce2272ca384592f # ratchet:mszostok/[email protected] | ||
|
|
||
| # release notes: https://github.com/mszostok/codeowners-validator/releases/tag/v0.7.4 | ||
| - uses: mszostok/codeowners-validator@7f3f5e28c6d7b8dfae5731e54ce2272ca384592f # ratchet:mszostok/codeowners-validator@v0 | ||
alexvy86 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| github_access_token: "${{ secrets.GITHUB_TOKEN }}" | ||
| checks: "files,duppatterns,syntax" | ||
|
|
@@ -34,7 +36,8 @@ jobs: | |
| name: PR template placeholder content | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: sitezen/pr-comment-checker@f1e956fac00c6d1163d15841886ae80b7ae58ecb # ratchet:sitezen/[email protected] | ||
| # release notes: https://github.com/sitezen/pr-comment-checker/releases/tag/v1.0.1 | ||
| - uses: sitezen/pr-comment-checker@f1e956fac00c6d1163d15841886ae80b7ae58ecb # ratchet:sitezen/pr-comment-checker@v1 | ||
| with: | ||
| pr_description_should_not_contain: | | ||
| Feel free to remove or alter parts of this template that do not offer value for your specific change | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.