From f936c5622b9217b3803e0f744cf1aafffa3341c1 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 9 Jul 2023 10:02:52 +0800 Subject: [PATCH 1/5] docs(getting-started): rename nightly build to pr-build --- docs/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 7ce6d8af..6caa58e0 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -8,9 +8,9 @@ Releases are available in -> **Note**: If you would like to get a taste of new features, there are nightly (latest) builds available. Most of the time, newly proposed changes will be included in `PRs` and will be exported as cross-platform executable binaries in builds (GitHub Action Workflow Build). Noted that newly introduced features are sometimes buggy, do it at your own risk. However, we still highly encourage you to check out our latest builds as it may help us further analyze features stability and resolve potential bugs accordingly. +> **Note**: If you would like to get a taste of new features, there are `PR Builds` available. Most of the time, newly proposed changes will be included in `PRs` and will be exported as cross-platform executable binaries in builds (GitHub Action Workflow Build). Noted that newly introduced features are sometimes buggy, do it at your own risk. However, we still highly encourage you to check out our latest builds as it may help us further analyze features stability and resolve potential bugs accordingly. -Nightly builds are available in +PR-builds are available in ### Spin up server locally From 77a7a68ffc2d4bb6002d8aa44eeaf53dfa8a0587 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 9 Jul 2023 10:03:33 +0800 Subject: [PATCH 2/5] refactor(workflow): rename build-nightly -> pr-build --- .../{build-nightly.yml => pr-build.yml} | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) rename .github/workflows/{build-nightly.yml => pr-build.yml} (93%) diff --git a/.github/workflows/build-nightly.yml b/.github/workflows/pr-build.yml similarity index 93% rename from .github/workflows/build-nightly.yml rename to .github/workflows/pr-build.yml index 964e4b4f..ee8d89b0 100644 --- a/.github/workflows/build-nightly.yml +++ b/.github/workflows/pr-build.yml @@ -1,19 +1,26 @@ -name: Build (Nightly) +name: PR Build (Preview) +run-name: '#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }} @${{ github.event.pull_request.head.ref }}:${{ github.event.pull_request.head.sha }}' on: workflow_dispatch: - push: - branches: - - hotfix-* - - test-pr-* + pull_request: + types: [opened, synchronize, reopened] paths-ignore: - '**/*.md' - README.md - pull_request: - types: [opened, synchronize, reopened] jobs: + context: + runs-on: ubuntu-22.04 + steps: + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "$GITHUB_CONTEXT" + checkout-full-src: + needs: context runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From 0d0641abd6b1fa322f0597024ef748400079685a Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 9 Jul 2023 10:05:46 +0800 Subject: [PATCH 3/5] refactor(build): update workflow title from Build to Build (Stable) --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd785cab..dc62d59f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,12 @@ -name: Build +name: Build (Stable) on: workflow_dispatch: push: branches: [main] + paths-ignore: + - '**/*.md' + - README.md jobs: checkout-full-src: From 9cb34d38e336dff740e761257c3f39d3425366c9 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 9 Jul 2023 10:08:59 +0800 Subject: [PATCH 4/5] ci: make context an independent job --- .github/workflows/pr-build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index ee8d89b0..e775ece2 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -20,7 +20,6 @@ jobs: echo "$GITHUB_CONTEXT" checkout-full-src: - needs: context runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From e63508d37730a70fbe018b84b78ba439b6c58cf6 Mon Sep 17 00:00:00 2001 From: kunish <17328586+kunish@users.noreply.github.com> Date: Sun, 9 Jul 2023 11:19:35 +0800 Subject: [PATCH 5/5] Update .github/workflows/pr-build.yml --- .github/workflows/pr-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index e775ece2..20b8bb20 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -11,7 +11,7 @@ on: jobs: context: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Dump GitHub context env: