-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# devlooped/oss - Switch back to latest stable includes devlooped/oss@875284b - Update .gitignore to ignore .genaiscript devlooped/oss@e0be248 - If we provide a docs category, don't exclude docs :) devlooped/oss@0c23e24 - Update to checkout@v4 devlooped/oss@5fb1723 - Skip discussion issues when generating changelog devlooped/oss@08d83cb - Improve triage actions on issues devlooped/oss@33000c0 - Remove -l:trx since it's just for dotnet test, not build devlooped/oss@0f7f7f7 - Make sure all stable versions are available for build/test devlooped/oss@06e898c - Attempt to get necessary permissions for default token devlooped/oss@85829f2 - Improve default value for GenerateDocumentationFile devlooped/oss@b76de49 - Simplify .gitattributes devlooped/oss@5f92a68 - Point to main for dotnet-file sync workflow devlooped/oss@59aaf43 - Update typed resgen to opt-in only devlooped/oss@a8b2080 # clarius/pages - Bump github-pages to fix build error clarius/pages@90fa16e
- Loading branch information
1 parent
af020c7
commit 495f06d
Showing
19 changed files
with
334 additions
and
208 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,24 +1,8 @@ | ||
# sln, csproj files (and friends) are always CRLF, even on linux | ||
*.sln text eol=crlf | ||
*.proj text eol=crlf | ||
*.csproj text eol=crlf | ||
# normalize by default | ||
* text=auto encoding=UTF-8 | ||
*.sh text eol=lf | ||
|
||
# These are windows specific files which we may as well ensure are | ||
# always crlf on checkout | ||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
|
||
# Opt in known filetypes to always normalize line endings on checkin | ||
# and always use native endings on checkout | ||
*.c text | ||
*.config text | ||
*.h text | ||
*.cs text | ||
*.md text | ||
*.tt text | ||
*.txt text | ||
|
||
# Some must always be checked out as lf so enforce that for those files | ||
# If these are not lf then bash/cygwin on windows will not be able to | ||
# excute the files | ||
*.sh text eol=lf |
This file contains 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Synchronizes .netconfig-configured files with dotnet-file | ||
name: dotnet-file-core | ||
on: | ||
workflow_call: | ||
|
||
env: | ||
DOTNET_NOLOGO: true | ||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: 🤖 defaults | ||
uses: devlooped/actions-bot@v1 | ||
with: | ||
name: ${{ secrets.BOT_NAME }} | ||
email: ${{ secrets.BOT_EMAIL }} | ||
gh_token: ${{ secrets.GH_TOKEN }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 🤘 checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
token: ${{ env.GH_TOKEN }} | ||
|
||
- name: ⌛ rate | ||
if: github.event_name != 'workflow_dispatch' | ||
run: | | ||
# add random sleep since we run on fixed schedule | ||
sleep (get-random -max 60) | ||
# get currently authenticated user rate limit info | ||
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate | ||
# if we don't have at least 100 requests left, wait until reset | ||
if ($rate.remaining -lt 10) { | ||
$wait = ($rate.reset - (Get-Date (Get-Date).ToUniversalTime() -UFormat %s)) | ||
echo "Rate limit remaining is $($rate.remaining), waiting for $($wait / 1000) seconds to reset" | ||
sleep $wait | ||
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate | ||
echo "Rate limit has reset to $($rate.remaining) requests" | ||
} | ||
- name: 🔄 sync | ||
run: | | ||
dotnet tool update -g dotnet-gcm | ||
# store credentials in plaintext for linux compat | ||
git config --local credential.credentialStore plaintext | ||
dotnet gcm store --protocol=https --host=github.com --username=$env:GITHUB_ACTOR --password=$env:GH_TOKEN | ||
gh auth status | ||
dotnet tool update -g dotnet-file | ||
$changelog = "$([System.IO.Path]::GetTempPath())dotnet-file.md" | ||
dotnet file sync -c:$changelog | ||
if (test-path $changelog) { | ||
echo 'CHANGES<<EOF' >> $env:GITHUB_ENV | ||
cat $changelog >> $env:GITHUB_ENV | ||
echo 'EOF' >> $env:GITHUB_ENV | ||
cat $changelog | ||
} else { | ||
echo 'No changelog was generated' | ||
} | ||
- name: +Mᐁ includes | ||
uses: devlooped/actions-includes@v1 | ||
with: | ||
validate: false | ||
|
||
- name: ✍ pull request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
base: main | ||
branch: dotnet-file-sync | ||
delete-branch: true | ||
labels: dependencies | ||
author: ${{ env.BOT_AUTHOR }} | ||
committer: ${{ env.BOT_AUTHOR }} | ||
commit-message: ⬆️ Bump files with dotnet-file sync | ||
|
||
${{ env.CHANGES }} | ||
title: "⬆️ Bump files with dotnet-file sync" | ||
body: ${{ env.CHANGES }} | ||
token: ${{ env.GH_TOKEN }} |
This file contains 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 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.