From d556e736723344f83838d08488c983a15381059a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 28 May 2022 14:52:11 +0200 Subject: [PATCH] Delete release-drafter.yml --- .github/workflows/release-drafter.yml | 41 --------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index 38fd272..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Release Drafter - -on: - push: - branches: - - main - -jobs: - update_release_draft: - runs-on: ubuntu-latest - name: Release Drafter - steps: - - name: Checkout the repository - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Find Next Version - id: version - run: | - declare -i newpost - latest=$(git describe --tags $(git rev-list --tags --max-count=1)) - latestpre=$(echo "$latest" | awk '{split($0,a,"."); print a[1] "." a[2]}') - datepre=$(date --utc '+%y.%-m') - if [[ "$latestpre" == "$datepre" ]]; then - latestpost=$(echo "$latest" | awk '{split($0,a,"."); print a[3]}') - newpost=$latestpost+1 - else - newpost=0 - fi - echo Current version: $latest - echo New target version: $datepre.$newpost - echo "::set-output name=version::$datepre.$newpost" - - - name: Run Release Drafter - uses: release-drafter/release-drafter@v5 - with: - tag: ${{ steps.version.outputs.version }} - name: ${{ steps.version.outputs.version }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}