From e9434e985fc6edf346edb20756c67912832f68c3 Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:29:15 +0530 Subject: [PATCH 01/10] added yml file --- .github/workflows/release-update.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release-update.yml diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml new file mode 100644 index 0000000..b83e1cc --- /dev/null +++ b/.github/workflows/release-update.yml @@ -0,0 +1,29 @@ +name: Example workflow + +on: + push: + branches: + - "**" + - "!master" + + +jobs: + example: + name: Example + runs-on: ubuntu-latest + + steps: + - name: Clone repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Get next version + id: get_next_version + uses: thenativeweb/get-next-version@main + with: + prefix: 'v' # optional, defaults to '' + - name: Show the next version + run: | + echo ${{ steps.get_next_version.outputs.version }} + echo ${{ steps.get_next_version.outputs.hasNextVersion }} \ No newline at end of file From ce73b8dcda65ffe757371f86661a57d16824b60b Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:32:48 +0530 Subject: [PATCH 02/10] updated yml --- .github/workflows/release-update.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index b83e1cc..378cdf6 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -20,10 +20,9 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Get next version id: get_next_version - uses: thenativeweb/get-next-version@main + uses: thenativeweb/next-version@main with: prefix: 'v' # optional, defaults to '' - name: Show the next version run: | - echo ${{ steps.get_next_version.outputs.version }} - echo ${{ steps.get_next_version.outputs.hasNextVersion }} \ No newline at end of file + echo ${{ steps.get_next_version.outputs.version }} \ No newline at end of file From b070b5a4003738c44c1076abc43caedcede4ade7 Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:37:30 +0530 Subject: [PATCH 03/10] updated yml --- .github/workflows/release-update.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index 378cdf6..2144862 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -13,16 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - - name: Clone repository - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} - name: Get next version id: get_next_version - uses: thenativeweb/next-version@main + uses: hugcabbage/next-version with: prefix: 'v' # optional, defaults to '' + mode: 3 - name: Show the next version run: | echo ${{ steps.get_next_version.outputs.version }} \ No newline at end of file From a6cab6018047be18791a16d4b4cfd031c6cd06c5 Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:39:29 +0530 Subject: [PATCH 04/10] updated yml --- .github/workflows/release-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index 2144862..a7298ad 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Get next version id: get_next_version - uses: hugcabbage/next-version + uses: hugcabbage/next-version@v1.0.4 with: prefix: 'v' # optional, defaults to '' mode: 3 From 35080b48720a9d592f67a2544a67b2d46761f6eb Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:40:48 +0530 Subject: [PATCH 05/10] updated yml --- .github/workflows/release-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index a7298ad..c88153f 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Get next version id: get_next_version - uses: hugcabbage/next-version@v1.0.4 + uses: hugcabbage/next-version@main with: prefix: 'v' # optional, defaults to '' mode: 3 From ca0f1bfafd0f489b9b20c205895ffa441d3370f6 Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:43:11 +0530 Subject: [PATCH 06/10] updated yml --- .github/workflows/release-update.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index c88153f..f0d79d9 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -19,6 +19,7 @@ jobs: with: prefix: 'v' # optional, defaults to '' mode: 3 + repo: "https://github.com/binary-Bug/piggy-db" - name: Show the next version run: | echo ${{ steps.get_next_version.outputs.version }} \ No newline at end of file From 9b07402c953fae4cfc2cd3ee5281b6517d1980b6 Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:50:04 +0530 Subject: [PATCH 07/10] updated yml --- .github/workflows/release-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index f0d79d9..f6c2d66 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -19,7 +19,7 @@ jobs: with: prefix: 'v' # optional, defaults to '' mode: 3 - repo: "https://github.com/binary-Bug/piggy-db" + repo_path: "https://github.com/binary-Bug/piggy-db" - name: Show the next version run: | echo ${{ steps.get_next_version.outputs.version }} \ No newline at end of file From 1ce256cb4fe635a59d5ec00207f3aa29862bcb43 Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 18:56:12 +0530 Subject: [PATCH 08/10] updated yml --- .github/workflows/release-update.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index f6c2d66..52d2998 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -13,13 +13,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 - name: Get next version id: get_next_version uses: hugcabbage/next-version@main with: prefix: 'v' # optional, defaults to '' mode: 3 - repo_path: "https://github.com/binary-Bug/piggy-db" - name: Show the next version run: | echo ${{ steps.get_next_version.outputs.version }} \ No newline at end of file From 239b1d50b9b972bcc4d8d3d7597aae8aca7ea3f7 Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 19:12:05 +0530 Subject: [PATCH 09/10] updated yml --- .github/workflows/release-update.yml | 31 ++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index 52d2998..1806111 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -1,15 +1,14 @@ -name: Example workflow +name: Update Release on: push: branches: - "**" - - "!master" jobs: - example: - name: Example + UpdateRelease: + name: Update Release runs-on: ubuntu-latest steps: @@ -19,8 +18,28 @@ jobs: id: get_next_version uses: hugcabbage/next-version@main with: - prefix: 'v' # optional, defaults to '' + prefix: 'v' mode: 3 - name: Show the next version run: | - echo ${{ steps.get_next_version.outputs.version }} \ No newline at end of file + echo ${{ steps.get_next_version.outputs.version }} + - name: Create Release for master + if: github.ref == 'refs/heads/master' + uses: maxkomarychev/oction-create-release@v0.7.1 + with: + token: ${{secrets.GITHUB_TOKEN}} + tag_name: ${{ steps.get_next_version.outputs.version }} + target_commitish: ${{github.ref}} + name: "${{github.ref}} ${{ steps.get_next_version.outputs.version }}" + body: "This Release was created through github actions" + prerelease: false + - name: Create Release for ${{github.ref}} + if: github.ref != 'refs/heads/master' + uses: maxkomarychev/oction-create-release@v0.7.1 + with: + token: ${{secrets.GITHUB_TOKEN}} + tag_name: ${{ steps.get_next_version.outputs.version }} + target_commitish: ${{github.ref}} + name: "${{github.ref}} ${{ steps.get_next_version.outputs.version }}" + body: "This Release was created through github actions" + prerelease: true \ No newline at end of file From 3cf6eccb33906b61e3cbcabff08c728feb4ee46c Mon Sep 17 00:00:00 2001 From: binary-Bug Date: Sat, 5 Oct 2024 19:17:01 +0530 Subject: [PATCH 10/10] updated yml --- .github/workflows/release-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-update.yml b/.github/workflows/release-update.yml index 1806111..ebd4336 100644 --- a/.github/workflows/release-update.yml +++ b/.github/workflows/release-update.yml @@ -6,7 +6,7 @@ on: - "**" -jobs: +jobs: # This job updates the release version UpdateRelease: name: Update Release runs-on: ubuntu-latest