diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 8a36c2c5..4406c15e 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -22,13 +22,8 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 1.24.x - - - name: Check out code - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: projectdiscovery/actions/setup/go@v1 - name: Test run: go test ./... diff --git a/.github/workflows/bump-version.yaml b/.github/workflows/bump-version.yaml new file mode 100644 index 00000000..3f519f0b --- /dev/null +++ b/.github/workflows/bump-version.yaml @@ -0,0 +1,19 @@ +name: ⏫ Bump Version + +on: + schedule: + - cron: '0 0 * * 0' + workflow_dispatch: + +jobs: + bump: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: projectdiscovery/actions/setup/git@v1 + - uses: projectdiscovery/actions/svu-next@v1 + with: + v0: true + release-create: true diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml deleted file mode 100644 index 052793f8..00000000 --- a/.github/workflows/release-tag.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 🔖 Auto release gh action - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * 0' - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Get Commit Count - id: get_commit - run: git rev-list `git rev-list --tags --no-walk --max-count=1`..HEAD --count | xargs -I {} echo COMMIT_COUNT={} >> $GITHUB_OUTPUT - - - name: Create release and tag - if: ${{ steps.get_commit.outputs.COMMIT_COUNT > 0 }} - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Create a GitHub release - if: ${{ steps.get_commit.outputs.COMMIT_COUNT > 0 }} - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.tag_version.outputs.new_tag }} - release_name: Release ${{ steps.tag_version.outputs.new_tag }} - body: ${{ steps.tag_version.outputs.changelog }} \ No newline at end of file