Skip to content

Commit

Permalink
Fix prepare release workflow (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
davfsa authored Sep 19, 2021
1 parent 4a7dbb0 commit 9d0ea5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ jobs:

- name: Setup git config
run: |
git config user.name --global "hikari-bot"
git config user.email --global "90276125+hikari-bot[bot]@users.noreply.github.com"
git config --global user.name "hikari-bot"
git config --global user.email "90276125+hikari-bot[bot]@users.noreply.github.com"
- name: Deploy
env:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ jobs:

- name: Setup git config
run: |
git config user.name --global "hikari-bot"
git config user.email --global "90276125+hikari-bot[bot]@users.noreply.github.com"
git config --global user.name "hikari-bot"
git config --global user.email "90276125+hikari-bot[bot]@users.noreply.github.com"
- name: Run prepare script
env:
VERSION: ${{ github.event.inputs.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
- bash scripts/prepare-release.sh
run: bash scripts/prepare-release.sh

- name: Generate token
id: generate_token
Expand All @@ -51,4 +50,4 @@ jobs:
pr_body: |
Release preparation triggered by @${{ github.event.sender.login }}.
Once the pull request is merged, you can trigger a PyPi release by creating a GitHub release for ${{ github.event.inputs.version }} in the repository.
Once the pull request is merged, you can trigger a PyPI release by creating a GitHub release for `${{ github.event.inputs.version }}` in the repository.
2 changes: 1 addition & 1 deletion changes/778.removal.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Removal of deprecated `hikari.impl.bot.BotApp` and `hikari.traits.BotAware`
- Use `hikari.impl.bot.GatewayBot` and `hikari.traits.GatewayBotAware` instead respectively
- Use `hikari.impl.bot.GatewayBot` and `hikari.traits.GatewayBotAware` respectively instead
1 change: 1 addition & 0 deletions scripts/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if [ -z "${GITHUB_TOKEN}" ]; then echo '$GITHUB_TOKEN environment variable is em

echo "===== INSTALLING DEPENDENCIES ====="
pip install towncrier
pip install -e .

echo "===== UPDATING INFORMATION ====="
echo "-- Checkout branch --"
Expand Down

0 comments on commit 9d0ea5f

Please sign in to comment.