Bump setuptools from 75.0.0 to 75.1.0 (#362) #210
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Drafter | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-drafter: | |
name: Release Drafter | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout the repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: ⏭️ Get 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/[email protected] | |
with: | |
tag: ${{ steps.version.outputs.version }} | |
name: ${{ steps.version.outputs.version }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |