-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from abrahammurciano/internal-logging
Internal logging
- Loading branch information
Showing
4 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,18 +28,32 @@ jobs: | |
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
- name: Get current version | ||
id: get-current-version | ||
run: | | ||
echo ::set-output name=current-version::$(python setup.py --version) | ||
- name: Close Current Milestone | ||
uses: Beakyn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
repository: ${{ github.repository }} | ||
milestone-title: v${{ steps.get-current-version.outputs.current-version }} | ||
- name: Get next version | ||
id: get-next-version | ||
run: | | ||
echo ::set-output name=next-version::$(python -c 'from discord_lumberjack import __version__ as v;s=v.rsplit(".",1);print(s[0],".",int(s[1])+1,sep="")') | ||
- name: Bump version | ||
run: | | ||
sed -i 's/^__version__ .*$/__version__ = "${{ steps.get-next-version.outputs.next-version }}"/g' discord_lumberjack/__init__.py | ||
- name: Check for modified files | ||
id: git-check | ||
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) | ||
- name: Create Milestone | ||
id: create-milestone | ||
uses: WyriHaximus/[email protected] | ||
with: | ||
title: v${{ steps.get-next-version.outputs.next-version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_GH_TOKEN }} | ||
- name: Create Pull Request | ||
if: steps.git-check.outputs.modified == 'true' | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
title: Set version to ${{ steps.get-next-version.outputs.next-version }} | ||
|
@@ -48,9 +62,4 @@ jobs: | |
token: ${{ secrets.PERSONAL_GH_TOKEN }} | ||
base: main | ||
labels: automerge | ||
- name: Create Milestone | ||
uses: WyriHaximus/[email protected] | ||
with: | ||
title: v${{ steps.get-next-version.outputs.next-version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_GH_TOKEN }} | ||
milestone: ${{ steps.create-milestone.outputs.number }} |
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
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
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