From 7714e1782fd4b76ebad65288568e54b728e0dacf Mon Sep 17 00:00:00 2001 From: Tolentino Cotesta Date: Sun, 7 Jan 2024 12:35:56 +0100 Subject: [PATCH] Create versioning.yml --- .github/workflows/versioning.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/versioning.yml diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml new file mode 100644 index 00000000..292d4f4b --- /dev/null +++ b/.github/workflows/versioning.yml @@ -0,0 +1,24 @@ +name: Generate +jobs: + generate: + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: 1.0.0 # Optional fallback tag to use when no tag can be found + - name: 'Get next minor version' + id: semvers + uses: "WyriHaximus/github-action-next-semvers@v1" + with: + version: ${{ steps.previoustag.outputs.tag }} + - name: 'Create new milestone' + id: createmilestone + uses: "WyriHaximus/github-action-create-milestone@v1" + with: + title: ${{ steps.semvers.outputs.patch }} + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"