Skip to content

Commit

Permalink
ci: add merge conflict action and update action version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvino committed Jul 1, 2024
1 parent 510884c commit a11a852
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

# Checkout the repository
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

# Checkout the repository
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/conflict-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Merge Conflict Labeler

on:
push:
branches:
- master
pull_request_target:
branches:
- master
types: [synchronize]

jobs:
label:
name: Labeling
runs-on: ubuntu-latest
if: ${{ github.repository == 'openbullet/OpenBullet2' }}
permissions:
contents: read
pull-requests: write
steps:
- name: Apply label
uses: eps1lon/actions-label-merge-conflict@v3
with:
dirtyLabel: 'merge-conflict'
commentOnDirty: 'This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.'
repoToken: '${{ secrets.GITHUB_TOKEN }}'
10 changes: 5 additions & 5 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ name: .NET

jobs:
test:
runs-on: windows-2019
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
- uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Unittests
run: dotnet test

0 comments on commit a11a852

Please sign in to comment.