https://github.com/devlooped/actions-which-dotnet
Determines which .NET SDKs are in use
https://github.com/devlooped/actions-which-dotnet
Last synced: 4 months ago
JSON representation
Determines which .NET SDKs are in use
- Host: GitHub
- URL: https://github.com/devlooped/actions-which-dotnet
- Owner: devlooped
- License: mit
- Created: 2025-05-26T23:49:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-08T00:10:56.000Z (5 months ago)
- Last Synced: 2026-02-08T08:59:56.389Z (5 months ago)
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.txt
Awesome Lists containing this project
README
# 🤌 which-dotnet
Determines which versions of .NET are in use and persists them to a JSON file.
## Usage
The action is typically used to keep an up-to-date manifest of dotnet versions in
use in the current repository, so the [dotnet-env](https://github.com/devlooped/actions-dotnet-env)
can automatically set up the environment via a single step.
```yml
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**/*.*proj'
jobs:
which-dotnet:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: 🤘 checkout
uses: actions/checkout@v4
- name: 🤌 dotnet
uses: devlooped/actions-which-dotnet@v1
- name: ✍ pull request
uses: peter-evans/create-pull-request@v7
with:
base: main
branch: which-dotnet
delete-branch: true
labels: dependencies
title: "⚙ Update dotnet versions"
body: "Update dotnet versions"
commit-message: "Update dotnet versions"
```
The action will output a JSON file containing an array of the major versions
used by dotnet projects (`**/*.*proj) in the entire repository, such as:
```json
[
"6.x",
"8.x",
"10.x"
]
```
The default JSON output location is `./.github/dotnet.json`. This can
be changed by specifying the `versions` parameter:
```yml
- name: 🤌 dotnet
uses: devlooped/actions-which-dotnet@v1
with:
versions: ./dotnet.json
```
# Sponsors
[](https://github.com/clarius)
[](https://github.com/MFB-Technologies-Inc)
[](https://github.com/torutek-gh)
[](https://github.com/drivenet)
[](https://github.com/Keflon)
[](https://github.com/tbolon)
[](https://github.com/kfrancis)
[](https://github.com/twenzel)
[](https://github.com/unoplatform)
[](https://github.com/dansiegel)
[](https://github.com/rbnswartz)
[](https://github.com/jfoshee)
[](https://github.com/Mrxx99)
[](https://github.com/eajhnsn1)
[](https://github.com/davidjenni)
[](https://github.com/Jonathan-Hickey)
[](https://github.com/akunzai)
[](https://github.com/KenBonny)
[](https://github.com/SimonCropp)
[](https://github.com/agileworks-eu)
[](https://github.com/sorahex)
[](https://github.com/arsdragonfly)
[](https://github.com/vezel-dev)
[](https://github.com/ChilliCream)
[](https://github.com/4OTC)
[](https://github.com/v-limo)
[](https://github.com/jordansjones)
[](https://github.com/DominicSchell)
[](https://github.com/mausch)
[](https://github.com/jwendl)
[](https://github.com/adalon)
[](https://github.com/Eule02)
[](https://github.com/sponsors/devlooped)
[Learn more about GitHub Sponsors](https://github.com/sponsors)