From 26bb2a0aaf4585d43969b843b348cdebc060248f Mon Sep 17 00:00:00 2001 From: Jong Date: Thu, 8 Dec 2022 18:57:51 +0800 Subject: [PATCH 01/11] bump --- .github/workflows/bump-version.yml | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/bump-version.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 0000000..fe5b365 --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,54 @@ +name: fera-api bump version + +env: + NODE_EXTRA_CA_CERTS: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem + +on: + workflow_dispatch: + pull_request_target: + branches: [ main, release** ] + types: + - closed + +jobs: + + checkout: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + steps: + - shell: bash + run: | + echo "Cleaning workspace directory..." + sudo rm -rfv ${{ github.workspace }} + mkdir -p ${{ github.workspace }} + + - uses: actions/checkout@v3 + with: + ref: ${{github.head_ref}} + + echo-var: + runs-on: ubuntu-latest + needs: + checkout + steps: + - run: echo ${{ github.server_url }} + - run: echo ${{ github.base_ref }} + - run: echo ${{ github.ref }} + + bump-version: + runs-on: ubuntu-latest + needs: + - checkout + steps: + - name: bump assembly patch version + if: github.ref == 'refs/heads/main' + run: echo "ouch" + + - name: commit files + run: | + date > generated.txt + git config --local user.email github-actions@github.com + git config --local user.name "github-actions" + #git remote set-url origin https://x-access-token:${{secrets.github_token}}@github.maybank.com/${{github.repository}} + git commit -m "bump build version" -a + git push \ No newline at end of file From b7d2dd75d41911a9792c424e3a362cd91f8c1c29 Mon Sep 17 00:00:00 2001 From: Jong Date: Thu, 8 Dec 2022 19:01:53 +0800 Subject: [PATCH 02/11] test --- .github/workflows/bump-version.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index fe5b365..91d4d93 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -28,8 +28,6 @@ jobs: echo-var: runs-on: ubuntu-latest - needs: - checkout steps: - run: echo ${{ github.server_url }} - run: echo ${{ github.base_ref }} From 16ae572fc8fccf516dd0f4e704daee21d4a41248 Mon Sep 17 00:00:00 2001 From: Jong Date: Thu, 8 Dec 2022 19:05:14 +0800 Subject: [PATCH 03/11] test --- .github/workflows/bump-version.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 91d4d93..19add98 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -29,9 +29,11 @@ jobs: echo-var: runs-on: ubuntu-latest steps: - - run: echo ${{ github.server_url }} - run: echo ${{ github.base_ref }} - run: echo ${{ github.ref }} + - run: echo ${{ github.event_name }} + - run: echo ${{ github.event.action }} + - run: echo ${{ github.event.pull_request.merged }} bump-version: runs-on: ubuntu-latest From 2545dc7643b7f313ad3a363f48dfbb2b526c8265 Mon Sep 17 00:00:00 2001 From: Jong Date: Thu, 8 Dec 2022 19:07:23 +0800 Subject: [PATCH 04/11] test --- .github/workflows/bump-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 19add98..23fac51 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -14,7 +14,7 @@ jobs: checkout: runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event.action == 'closed' && github.event.pull_request.merged == true steps: - shell: bash run: | From 2403b70336d1717b636a70af683655712b9de660 Mon Sep 17 00:00:00 2001 From: Jong Date: Thu, 8 Dec 2022 19:09:33 +0800 Subject: [PATCH 05/11] test --- .github/workflows/bump-version.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 23fac51..7c52cc2 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -23,8 +23,6 @@ jobs: mkdir -p ${{ github.workspace }} - uses: actions/checkout@v3 - with: - ref: ${{github.head_ref}} echo-var: runs-on: ubuntu-latest From 40a1dc6bb06c3f2dba97a1d87b371928f1b839df Mon Sep 17 00:00:00 2001 From: Jong Date: Thu, 8 Dec 2022 21:00:38 +0800 Subject: [PATCH 06/11] test --- .github/workflows/bump-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 7c52cc2..bc940fb 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -45,8 +45,8 @@ jobs: - name: commit files run: | date > generated.txt - git config --local user.email github-actions@github.com - git config --local user.name "github-actions" + git config user.email github-actions@github.com + git config user.name "github-actions" #git remote set-url origin https://x-access-token:${{secrets.github_token}}@github.maybank.com/${{github.repository}} git commit -m "bump build version" -a git push \ No newline at end of file From 1e13a354655d1fad7b961cd1889f84de3d979ca0 Mon Sep 17 00:00:00 2001 From: Jong Date: Thu, 8 Dec 2022 21:09:50 +0800 Subject: [PATCH 07/11] test --- .github/workflows/bump-version.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index bc940fb..914684f 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -11,19 +11,6 @@ on: - closed jobs: - - checkout: - runs-on: ubuntu-latest - if: github.event.action == 'closed' && github.event.pull_request.merged == true - steps: - - shell: bash - run: | - echo "Cleaning workspace directory..." - sudo rm -rfv ${{ github.workspace }} - mkdir -p ${{ github.workspace }} - - - uses: actions/checkout@v3 - echo-var: runs-on: ubuntu-latest steps: @@ -35,9 +22,15 @@ jobs: bump-version: runs-on: ubuntu-latest - needs: - - checkout + if: github.event.action == 'closed' && github.event.pull_request.merged == true steps: + - shell: bash + run: | + echo "Cleaning workspace directory..." + sudo rm -rfv ${{ github.workspace }} + mkdir -p ${{ github.workspace }} + + - uses: actions/checkout@v3 - name: bump assembly patch version if: github.ref == 'refs/heads/main' run: echo "ouch" @@ -45,8 +38,8 @@ jobs: - name: commit files run: | date > generated.txt - git config user.email github-actions@github.com - git config user.name "github-actions" + git config --local user.email github-actions@github.com + git config --local user.name "github-actions" #git remote set-url origin https://x-access-token:${{secrets.github_token}}@github.maybank.com/${{github.repository}} git commit -m "bump build version" -a git push \ No newline at end of file From 5368ece9900c5acaba39f0030c8bf5d6accb8774 Mon Sep 17 00:00:00 2001 From: Jong Date: Mon, 12 Dec 2022 09:34:20 +0800 Subject: [PATCH 08/11] test --- .github/workflows/bump-version.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 226c146..604801a 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -5,10 +5,8 @@ env: on: workflow_dispatch: - pull_request_target: + pull_request: branches: [ main, release** ] - types: - - closed jobs: echo-var: @@ -22,7 +20,7 @@ jobs: bump-version: runs-on: ubuntu-latest - if: github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' steps: - shell: bash run: | From 0518c1b6360724affe6ee1b202b35ac968a8f47a Mon Sep 17 00:00:00 2001 From: Jong Date: Mon, 12 Dec 2022 09:55:49 +0800 Subject: [PATCH 09/11] est --- .github/workflows/bump-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 604801a..6001403 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -20,7 +20,7 @@ jobs: bump-version: runs-on: ubuntu-latest - if: github.event_name == 'pull_request' + if: contains(github.base_ref, 'main') && github.event_name == 'pull_request' steps: - shell: bash run: | @@ -35,7 +35,7 @@ jobs: - name: commit files run: | - date > generated.txt + date > README.md git config user.email github-actions@github.com git config user.name "github-actions" #git remote set-url origin https://x-access-token:${{secrets.github_token}}@github.maybank.com/${{github.repository}} From e8128a5619d6db1e7fcff69b0eb4d258881e3ab0 Mon Sep 17 00:00:00 2001 From: Jong Date: Mon, 12 Dec 2022 10:05:51 +0800 Subject: [PATCH 10/11] test --- .github/workflows/bump-version.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 6001403..b57d392 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -29,6 +29,9 @@ jobs: mkdir -p ${{ github.workspace }} - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + - name: bump assembly patch version if: github.ref == 'refs/heads/main' run: echo "ouch" From 273f2b0873d4238548469278fa9e773d8351133e Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 12 Dec 2022 02:06:11 +0000 Subject: [PATCH 11/11] bump build version --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index cebba5a..a56eb52 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -# github-pages-test - -update readme \ No newline at end of file +Mon Dec 12 02:06:11 UTC 2022