Skip to content

Commit 1522432

Browse files
Copilotdavidfowl
authored andcommitted
Add GitHub Action to auto-update dotnet-install scripts
Co-authored-by: davidfowl <[email protected]>
1 parent aa3c288 commit 1522432

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Update dotnet-install Scripts
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 6 * * 1' # Weekly on Monday at 06:00 UTC
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
update-scripts:
14+
runs-on: ubuntu-latest
15+
if: ${{ github.repository_owner == 'dotnet' }}
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
19+
- name: Download dotnet-install.sh
20+
run: |
21+
curl -sSL -o src/Aspire.Cli/Resources/dotnet-install.sh https://dot.net/v1/dotnet-install.sh
22+
23+
- name: Download dotnet-install.ps1
24+
run: |
25+
curl -sSL -o src/Aspire.Cli/Resources/dotnet-install.ps1 https://dot.net/v1/dotnet-install.ps1
26+
27+
- name: Create or update pull request
28+
uses: dotnet/actions-create-pull-request@e8d799aa1f8b17f324f9513832811b0a62f1e0b1
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
branch: update-dotnet-install-scripts
32+
base: main
33+
commit-message: "[Automated] Update dotnet-install scripts"
34+
labels: |
35+
area-cli
36+
area-engineering-systems
37+
title: "[Automated] Update dotnet-install scripts"
38+
body: "Auto-generated update of embedded dotnet-install.sh and dotnet-install.ps1 scripts from https://dot.net/v1/."

0 commit comments

Comments
 (0)