diff --git a/.github/workflows/dotnet-env.yml b/.github/workflows/dotnet-env.yml index a76d0fd..1206d10 100644 --- a/.github/workflows/dotnet-env.yml +++ b/.github/workflows/dotnet-env.yml @@ -10,6 +10,8 @@ on: jobs: which-dotnet: runs-on: ubuntu-latest + env: + PR_TOKEN: ${{ secrets.DEVLOOPED_TOKEN || secrets.GH_TOKEN }} permissions: contents: write pull-requests: write @@ -20,18 +22,19 @@ jobs: with: name: ${{ secrets.BOT_NAME }} email: ${{ secrets.BOT_EMAIL }} - gh_token: ${{ secrets.GH_TOKEN }} + gh_token: ${{ env.PR_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }} - name: 🤘 checkout uses: actions/checkout@v4 with: - token: ${{ env.GH_TOKEN }} + token: ${{ env.PR_TOKEN || github.token }} - name: 🤌 dotnet uses: devlooped/actions-which-dotnet@v1 - name: ✍ pull request + if: env.PR_TOKEN != '' uses: peter-evans/create-pull-request@v7 with: base: main @@ -41,4 +44,9 @@ jobs: title: "⚙ Update dotnet versions" body: "Update dotnet versions" commit-message: "Update dotnet versions" - token: ${{ env.GH_TOKEN }} \ No newline at end of file + token: ${{ env.PR_TOKEN }} + + - name: ⚠️ skip pull request + if: env.PR_TOKEN == '' + shell: bash + run: echo "::warning::Skipping PR creation because neither DEVLOOPED_TOKEN nor GH_TOKEN is configured. GITHUB_TOKEN cannot create pull requests in this repository." diff --git a/.github/workflows/includes.yml b/.github/workflows/includes.yml index fc6dbeb..8fd6690 100644 --- a/.github/workflows/includes.yml +++ b/.github/workflows/includes.yml @@ -12,6 +12,8 @@ on: jobs: includes: runs-on: ubuntu-latest + env: + PR_TOKEN: ${{ secrets.DEVLOOPED_TOKEN || secrets.GH_TOKEN }} permissions: contents: write pull-requests: write @@ -21,13 +23,13 @@ jobs: with: name: ${{ secrets.BOT_NAME }} email: ${{ secrets.BOT_EMAIL }} - gh_token: ${{ secrets.GH_TOKEN }} + gh_token: ${{ env.PR_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }} - name: 🤘 checkout uses: actions/checkout@v4 with: - token: ${{ env.GH_TOKEN }} + token: ${{ env.PR_TOKEN || github.token }} - name: +Mᐁ includes uses: devlooped/actions-includes@v1 @@ -50,6 +52,7 @@ jobs: ((get-content -raw $file) -replace '\$product\$',$product).trim() | set-content $file - name: ✍ pull request + if: env.PR_TOKEN != '' uses: peter-evans/create-pull-request@v8 with: add-paths: | @@ -64,4 +67,9 @@ jobs: commit-message: +Mᐁ includes title: +Mᐁ includes body: +Mᐁ includes - token: ${{ env.GH_TOKEN }} + token: ${{ env.PR_TOKEN }} + + - name: ⚠️ skip pull request + if: env.PR_TOKEN == '' + shell: bash + run: echo "::warning::Skipping PR creation because neither DEVLOOPED_TOKEN nor GH_TOKEN is configured. GITHUB_TOKEN cannot create pull requests in this repository." diff --git a/.gitignore b/.gitignore index dfe1fe0..edfe7a5 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ local.settings.json *.binlog *.zip __azurite*.* +AzuriteConfig __*__ .nuget diff --git a/.netconfig b/.netconfig index 3bfc328..e113e65 100644 --- a/.netconfig +++ b/.netconfig @@ -56,9 +56,9 @@ skip [file ".gitignore"] url = https://github.com/devlooped/oss/blob/main/.gitignore - etag = 20a8b49d57024abbd85aac5b0020c30e5eb68e0384b2761e93727c8780c4a991 + etag = 69c38c664debe4cbb8b68a87bacb1c93d0ac9757635c31a42292317f05484728 weak - sha = a225b7a9f609f26bcc24e0d84f663387be251a7d + sha = 12c18e78c4bbab118b798d04344e5a5253216841 [file "Directory.Build.rsp"] url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp etag = 0ccae83fc51f400bfd7058170bfec7aba11455e24a46a0d7e6a358da6486e255 @@ -109,8 +109,8 @@ weak [file ".github/workflows/includes.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml - sha = 06628725a6303bb8c4cf3076a384fc982a91bc0b - etag = 478f91d4126230e57cc601382da1ba23f9daa054645b4af89800d8dd862e64fd + sha = 7c1c6e615b5785e0ac9db33cb17343d6c1de16ff + etag = 5e6a10be141ee629201bfad01eae09b5c36a67f541ec7ab411ae400b5d73de1d weak [file ".github/workflows/combine-prs.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/combine-prs.yml @@ -142,8 +142,8 @@ weak [file ".github/workflows/dotnet-env.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-env.yml - sha = 77e83f238196d2723640abef0c7b6f43994f9747 - etag = fcb9759a96966df40dcd24906fd328ddec05953b7e747a6bb8d0d1e4c3865274 + sha = 7c1c6e615b5785e0ac9db33cb17343d6c1de16ff + etag = 68c1e28f475ff9d05f985bf53a51fce6e64b24a8b75bd8e47119ff57309281f1 weak [file "src/nuget.config"] url = https://github.com/devlooped/oss/blob/main/src/nuget.config @@ -160,3 +160,4 @@ url = https://github.com/devlooped/oss/blob/main/.github/copilot-instructions.md etag = 6ee650d118a57494d3545d54718ccaa5257b09d54504e9c21514fe596edd9678 weak + sha = e616d89d9537c4b8ccf1c20dd277ab82104167c4 diff --git a/readme.md b/readme.md index 25ec8e8..73d31b1 100644 --- a/readme.md +++ b/readme.md @@ -207,8 +207,7 @@ since the "Main" file selection is performed exclusively via MSBuild item manipu [![mccaffers](https://avatars.githubusercontent.com/u/16667079?u=110034edf51097a5ee82cb6a94ae5483568e3469&v=4&s=39 "mccaffers")](https://github.com/mccaffers) [![Seika Logiciel](https://avatars.githubusercontent.com/u/2564602?v=4&s=39 "Seika Logiciel")](https://github.com/SeikaLogiciel) [![Andrew Grant](https://avatars.githubusercontent.com/devlooped-user?s=39 "Andrew Grant")](https://github.com/wizardness) -[![Lars](https://avatars.githubusercontent.com/u/1727124?v=4&s=39 "Lars")](https://github.com/latonz) -[![prime167](https://avatars.githubusercontent.com/u/3722845?v=4&s=39 "prime167")](https://github.com/prime167) +[![eska-gmbh](https://avatars.githubusercontent.com/devlooped-team?s=39 "eska-gmbh")](https://github.com/eska-gmbh)