File tree Expand file tree Collapse file tree 4 files changed +97
-0
lines changed
Expand file tree Collapse file tree 4 files changed +97
-0
lines changed Original file line number Diff line number Diff line change 1+ # ref: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
2+ version : 2
3+ updates :
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " weekly" # Check for updates to GitHub Actions every week
8+ cooldown :
9+ default-days : 14 # Wait 14 days before creating another PR for the same dependency. This will prevent vulnerability on the package impact.
10+ ignore :
11+ # I just want update action when major/minor version is updated. patch updates are too noisy.
12+ - dependency-name : " *"
13+ update-types :
14+ - version-update:semver-patch
Original file line number Diff line number Diff line change 1+ name : Build-Debug
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - " main"
8+ pull_request :
9+ branches :
10+ - main
11+
12+ jobs :
13+ build-dotnet :
14+ permissions :
15+ contents : read
16+ runs-on : ubuntu-24.04
17+ timeout-minutes : 10
18+ steps :
19+ - uses : Cysharp/Actions/.github/actions/checkout@main
20+ - uses : Cysharp/Actions/.github/actions/setup-dotnet@main
21+ - run : dotnet build -c Release
22+ - run : dotnet test -c Release --no-build
23+ - run : dotnet pack -c Release --no-build -p:IncludeSymbols=true -o $GITHUB_WORKSPACE/artifacts
Original file line number Diff line number Diff line change 1+ name : Build-Release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : " tag: git tag you want create. (sample 1.0.0)"
8+ required : true
9+ dry-run :
10+ description : " dry-run: true will never create release/nuget."
11+ required : true
12+ default : false
13+ type : boolean
14+
15+ jobs :
16+ build-dotnet :
17+ permissions :
18+ contents : read
19+ runs-on : ubuntu-24.04
20+ timeout-minutes : 10
21+ steps :
22+ - uses : Cysharp/Actions/.github/actions/checkout@main
23+ - uses : Cysharp/Actions/.github/actions/setup-dotnet@main
24+ - run : dotnet build -c Release -p:Version=${{ inputs.tag }}
25+ - run : dotnet test -c Release --no-build
26+ # pack nuget
27+ - run : dotnet pack -c Release --no-build -p:Version=${{ inputs.tag }} -o ./publish
28+ - uses : Cysharp/Actions/.github/actions/upload-artifact@main
29+ with :
30+ name : nuget
31+ path : ./publish
32+ retention-days : 1
33+
34+ # release
35+ create-release :
36+ needs : [build-dotnet]
37+ permissions :
38+ contents : write
39+ id-token : write # required for NuGet Trusted Publish
40+ uses : Cysharp/Actions/.github/workflows/create-release.yaml@main
41+ with :
42+ commit-id : ${{ github.sha }}
43+ dry-run : ${{ inputs.dry-run }}
44+ tag : ${{ inputs.tag }}
45+ nuget-push : true
46+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : " Close stale issues"
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : " 0 0 * * *"
7+
8+ jobs :
9+ stale :
10+ permissions :
11+ contents : read
12+ pull-requests : write
13+ issues : write
14+ uses : Cysharp/Actions/.github/workflows/stale-issue.yaml@main
You can’t perform that action at this time.
0 commit comments