From: dongsug.song Date: Fri, 7 Feb 2025 10:43:52 +0000 (+0900) Subject: Try to fix github Action error X-Git-Tag: submit/tizen_9.0/20250207.150854~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74ecf8c9191a4e47829454c849d2ff617a3ea6a5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Try to fix github Action error --- diff --git a/.github/workflows/build-branches.yml b/.github/workflows/build-branches.yml index a92c8ad94..329e9ce06 100644 --- a/.github/workflows/build-branches.yml +++ b/.github/workflows/build-branches.yml @@ -3,7 +3,7 @@ name: Build Branches on: push: branches: - - master + - main - DevelNUI - API* @@ -36,7 +36,7 @@ jobs: - name: Extract API run: | - dotnet run -p .apitool/ \ + dotnet run --project .apitool/ \ -- print --format=json --include-hidden \ -o Artifacts/api.json Artifacts/bin/public/ diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index 1f71c11b3..850aa80a5 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -3,9 +3,10 @@ name: "Build Pull Request" on: pull_request: branches: - - master + - main - DevelNUI - API* + workflow_dispatch: jobs: @@ -51,16 +52,17 @@ jobs: - name: Extract API Spec run: | - dotnet run -p .apitool/ \ + dotnet run --project .apitool/ \ -- print --format=json --include-hidden \ -o Artifacts/api.json Artifacts/bin/public/ - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: reports if-no-files-found: ignore path: Artifacts/*.json + overwrite : true check-api: needs: [build] @@ -72,44 +74,33 @@ jobs: dotnet-version: 3.1.x - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: reports path: Artifacts + overwrite: true - - name: Download Base API Spec - id: base-spec - uses: TizenAPI/tizenfx-build-actions/s3-download-public@master - with: - region: ap-northeast-2 - bucket: tizenfx-api-specs - key: ${{ github.event.pull_request.base.sha }}.json - path: Artifacts/base-api.json - - - uses: actions/checkout@v3 - if: ${{ steps.base-spec.outputs.code != 200 }} + - name: Checkout to base spec + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.base.sha }} path: base - name: Build Base Branch - if: ${{ steps.base-spec.outputs.code != 200 }} uses: TizenAPI/tizenfx-build-actions/problem-filter@master with: run: ./build.sh full working-directory: base - name: Checkout APITool - if: ${{ steps.base-spec.outputs.code != 200 }} uses: actions/checkout@v3 with: repository: TizenAPI/APITool path: .apitool - name: Extract Base API - if: ${{ steps.base-spec.outputs.code != 200 }} run: | - dotnet run -p .apitool/ \ + dotnet run --project .apitool/ \ -- print --format=json --include-hidden \ -o Artifacts/base-api.json base/Artifacts/bin/public/ @@ -120,7 +111,8 @@ jobs: base-file: Artifacts/base-api.json output: Artifacts/api-comp.json - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: reports path: Artifacts/api-comp.json + overwrite: true diff --git a/.github/workflows/check-api-level.yml b/.github/workflows/check-api-level.yml index a0c52f678..2dda3c556 100644 --- a/.github/workflows/check-api-level.yml +++ b/.github/workflows/check-api-level.yml @@ -3,7 +3,7 @@ name: "Check API Level" on: pull_request_target: branches: - - master + - main - DevelNUI - API* diff --git a/.gitignore b/.gitignore index 660fec585..353fba3f7 100644 --- a/.gitignore +++ b/.gitignore @@ -218,3 +218,5 @@ externals/libs/ tools/coverage coverage.json +# vs code temp +.vscode/