👷 Refactored build and publish workflow (#435)

This commit is contained in:
Nguyen Thai
2024-03-13 15:53:33 +07:00
committed by GitHub
parent 3b3bb089e8
commit 1e797942e9
14 changed files with 310 additions and 352 deletions
+6 -6
View File
@@ -28,7 +28,7 @@ jobs:
if: github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "staging:develop"
@@ -37,7 +37,7 @@ jobs:
if: github.event.label.name == 'qa:ready' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: qa
fetch-depth: 0
@@ -62,7 +62,7 @@ jobs:
if: github.event.label.name == 'canary:ready' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: canary
fetch-depth: 0
@@ -86,7 +86,7 @@ jobs:
if: github.event.label.name == 'priority:1' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: qa
fetch-depth: 0
@@ -97,7 +97,7 @@ jobs:
git config user.email "labels-bot@github.com"
git cherry-pick ${{github.event.pull_request.merge_commit_sha}}
git push
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: canary
fetch-depth: 0
@@ -108,7 +108,7 @@ jobs:
git config user.email "labels-bot@github.com"
git cherry-pick ${{github.event.pull_request.merge_commit_sha}}
git push
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0