From 885bf0640dc19d9f91cd7d0366a58946da4a7d27 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Mon, 20 May 2024 12:29:30 +0330 Subject: [PATCH] Fix Workflow --- .github/workflows/build.yml | 9 +++++---- .github/workflows/bump-up-version.yml | 6 +++--- .github/workflows/dotnet-format.yml | 7 ++++--- .github/workflows/push-to-myget.yml | 7 ++++--- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc740168..a12668cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,13 +7,14 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@master - + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup .NET Core SDK - uses: actions/setup-dotnet@master + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - include-prerelease: true - name: Build working-directory: ./build diff --git a/.github/workflows/bump-up-version.yml b/.github/workflows/bump-up-version.yml index 512d4d28..0eaffe8b 100644 --- a/.github/workflows/bump-up-version.yml +++ b/.github/workflows/bump-up-version.yml @@ -14,15 +14,15 @@ jobs: runs-on: windows-latest steps: - name: Checkout repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: + fetch-depth: 0 ref: ${{ github.head_ref }} - name: Setup .NET Core SDK - uses: actions/setup-dotnet@master + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - include-prerelease: true - name: Publish working-directory: ./build diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 27ce4112..595bee2e 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -10,15 +10,16 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: + fetch-depth: 0 ref: ${{ github.head_ref }} + - name: Setup .NET Core SDK - uses: actions/setup-dotnet@master + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - include-prerelease: true # 代码文件编码规范机器人,详细请看 [dotnet 在 GitHub 的 Action 上部署自动代码编码规范机器人](https://blog.lindexi.com/post/dotnet-%E5%9C%A8-GitHub-%E7%9A%84-Action-%E4%B8%8A%E9%83%A8%E7%BD%B2%E8%87%AA%E5%8A%A8%E4%BB%A3%E7%A0%81%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83%E6%9C%BA%E5%99%A8%E4%BA%BA.html) - name: Install dotnetCampus.EncodingNormalior diff --git a/.github/workflows/push-to-myget.yml b/.github/workflows/push-to-myget.yml index 9dc0357b..d9bcbfa2 100644 --- a/.github/workflows/push-to-myget.yml +++ b/.github/workflows/push-to-myget.yml @@ -7,13 +7,14 @@ jobs: runs-on: windows-latest steps: - name: checkout - uses: actions/checkout@master + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup .NET Core SDK - uses: actions/setup-dotnet@master + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - include-prerelease: true - name: setup nuget.exe uses: NuGet/setup-nuget@v1.0.5