diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 5bbe21ffb..2beacb849 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -14,7 +14,7 @@ jobs: # Checkout the repository - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/build-staging.yml b/.github/workflows/build-staging.yml index d4f3aa0e6..1e895c63e 100644 --- a/.github/workflows/build-staging.yml +++ b/.github/workflows/build-staging.yml @@ -14,7 +14,7 @@ jobs: # Checkout the repository - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/conflict-labeler.yml b/.github/workflows/conflict-labeler.yml new file mode 100644 index 000000000..d77e6087c --- /dev/null +++ b/.github/workflows/conflict-labeler.yml @@ -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 }}' diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index f71e899d5..6ed6736f8 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -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