From 81176ac8abafe9411df53a4c230624cb9eae11ec Mon Sep 17 00:00:00 2001 From: "sung-su.kim" Date: Thu, 28 Nov 2024 10:00:18 +0900 Subject: [PATCH] Update actions for main branch (#6482) * Update build-pull-request * Update main * Apply review * Change step name --- .github/workflows/build-branches.yml | 2 +- .github/workflows/build-pull-request.yml | 18 +++--------------- .github/workflows/check-api-level.yml | 2 +- .github/workflows/deploy-packages.yml | 2 +- .github/workflows/nightly-release.yml | 4 ++-- 5 files changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-branches.yml b/.github/workflows/build-branches.yml index a92c8ad94ee..952e1b8aefe 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* diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index 43886ca73a5..df10dad114d 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -3,7 +3,7 @@ name: "Build Pull Request" on: pull_request: branches: - - master + - main - DevelNUI - API* workflow_dispatch: @@ -78,37 +78,25 @@ jobs: name: reports path: Artifacts - - 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/ \ -- print --format=json --include-hidden \ diff --git a/.github/workflows/check-api-level.yml b/.github/workflows/check-api-level.yml index a0c52f6785d..2dda3c55601 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/.github/workflows/deploy-packages.yml b/.github/workflows/deploy-packages.yml index 72690ce5204..14d6cf90e55 100644 --- a/.github/workflows/deploy-packages.yml +++ b/.github/workflows/deploy-packages.yml @@ -6,7 +6,7 @@ on: target: description: 'Branch to deploy' required: true - default: 'master' + default: 'main' deploy_to_gpr: description: 'Deploy packages to Github Packages Registry?' required: true diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index cf2a6fc9485..3a43972e18a 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: env: - TARGET_BRANCHES: 'master API12 API11' + TARGET_BRANCHES: 'main API12 API11' jobs: nightly: @@ -53,7 +53,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, workflow_id: workflow.id, - ref: 'master', + ref: 'main', inputs: { target, deploy_to_gpr: 'true', deploy_to_myget: 'true', deploy_to_tizen: 'true' } }) console.log(`Event dispatch for ${target} : ${dispatchResp.status}`)