Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/merge-bot-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Merge bot generated PR's
name: Merge bot generated PRs

on:
pull_request:
Expand All @@ -10,7 +10,7 @@ concurrency:
jobs:

merge-dependabot:
name: Merge dependabot PR's
name: Merge dependabot PRs
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
permissions:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:

steps:

- name: Merge language data PR's
- name: Merge language data PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,25 @@ jobs:
name: Publish release
runs-on: ubuntu-latest
needs: test
if: github.event_name != 'pull_request'
permissions:
contents: write

steps:

# https://github.com/marketplace/actions/setup-net-core-sdk
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x

# https://github.com/marketplace/actions/checkout
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

# https://github.com/marketplace/actions/nerdbank-gitversioning
- name: Run Nerdbank.GitVersioning
id: nbgv
uses: dotnet/nbgv@master

# https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build
- name: Build project
run: >-
dotnet build ./LanguageTags/LanguageTags.csproj
Expand All @@ -54,24 +49,19 @@ jobs:
-property:InformationalVersion=${{ steps.nbgv.outputs.AssemblyInformationalVersion }}
-property:PackageVersion=${{ steps.nbgv.outputs.SemVer2 }}

# https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push
- name: Publish to NuGet.org
if: github.event_name != 'pull_request'
run: >-
dotnet nuget push ${{ github.workspace }}/Publish/*.nupkg
--source https://api.nuget.org/v3/index.json
--api-key ${{ secrets.NUGET_API_KEY }}
--skip-duplicate

- name: Zip output
if: github.event_name != 'pull_request'
run: |
cp ./LanguageData/*.json ./Publish/
7z a -t7z ./Publish/LanguageTags.7z ./Publish/*

# https://github.com/marketplace/actions/gh-release
- name: Create GitHub release
if: github.event_name != 'pull_request'
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Checks code style
- name: Check code style
run: |
dotnet tool restore
dotnet csharpier check --log-level=debug .
Expand Down