Skip to content

Commit

Permalink
Update actions for main branch (#6482)
Browse files Browse the repository at this point in the history
* Update build-pull-request

* Update main

* Apply review

* Change step name
  • Loading branch information
sung-su authored Nov 28, 2024
1 parent 1e1c08d commit 81176ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Branches
on:
push:
branches:
- master
- main
- DevelNUI
- API*

Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Build Pull Request"
on:
pull_request:
branches:
- master
- main
- DevelNUI
- API*
workflow_dispatch:
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-api-level.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Check API Level"
on:
pull_request_target:
branches:
- master
- main
- DevelNUI
- API*

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
TARGET_BRANCHES: 'master API12 API11'
TARGET_BRANCHES: 'main API12 API11'

jobs:
nightly:
Expand Down Expand Up @@ -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}`)
Expand Down

0 comments on commit 81176ac

Please sign in to comment.