Compare commits

..

1 Commits

Author SHA1 Message Date
26f39a20c7 chore(deps): update dependency sentry-sdk to v2.19.2
All checks were successful
CI / ci (pull_request) Successful in 2m11s
2025-01-01 01:02:02 +00:00
2 changed files with 13 additions and 54 deletions

View File

@ -32,23 +32,11 @@ jobs:
python-version: "${{ vars.PYTHON_VERSION }}" python-version: "${{ vars.PYTHON_VERSION }}"
- name: Setup Poetry - name: Setup Poetry
uses: abatilo/actions-poetry@v3 run: curl -sSL https://install.python-poetry.org | python3 -
# run: curl -sSL https://install.python-poetry.org | python3 -
- name: Update PATH - name: Update PATH
run: export PATH="/root/.local/bin:$PATH" run: export PATH="/root/.local/bin:$PATH"
- name: Setup virtual environment
run: |
/root/.local/bin/poetry config virtualenvs.create true --local
/root/.local/bin/poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define cache for dependencies
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies - name: Install dependencies
run: /root/.local/bin/poetry install run: /root/.local/bin/poetry install

View File

@ -19,10 +19,6 @@ jobs:
if: ${{ !contains(gitea.event.issue.number, '436') || !contains(gitea.event.comment.body, '/trigger-release') || !contains(gitea.event.comment.user.login, 'luke') }} if: ${{ !contains(gitea.event.issue.number, '436') || !contains(gitea.event.comment.body, '/trigger-release') || !contains(gitea.event.comment.user.login, 'luke') }}
run: exit 1 run: exit 1
- name: Delete issue comment
run: |
curl -X DELETE -H "Authorization: token ${{ gitea.token }}" "${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/comments/${{ gitea.event.comment.id }}"
get_latest_tag: get_latest_tag:
name: Get latest tag name: Get latest tag
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -31,28 +27,24 @@ jobs:
latesttag: ${{ steps.latesttag.outputs.latesttag }} latesttag: ${{ steps.latesttag.outputs.latesttag }}
steps: steps:
- uses: actions/checkout@v4.1.7 - uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Get latest tag - name: Get latest tag
id: latesttag id: latesttag
run: | run: |
LATESTTAG=$(git describe --tags --abbrev=0) git fetch --tags
echo "latesttag=$LATESTTAG" >> "$GITEA_OUTPUT" echo "latesttag=$(git describe --tags --abbrev=0)" >> "$GITEA_OUTPUT"
test: test:
name: Unit Test name: Unit Test
needs: get_latest_tag needs: get_latest_tag
uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@${{ needs.get_latest_tag.outputs.latesttag }} uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@${{ needs.get_latest_tag.outputs.latesttag }}
continue-on-error: true
create_release: create_release:
name: Create Release name: Create Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
# needs: test needs: test
outputs: outputs:
release_name: ${{ steps.tag_version.outputs.new_tag }} release_name: ${{ steps.tag_version.outputs.new_tag }}
success: ${{ steps.set_flag.outputs.success }} success: ${{ steps.set_flag.outputs.success }}
srvurl: ${{ steps.set_srvurl.outputs.srvurl }}
steps: steps:
- uses: actions/checkout@v4.1.7 - uses: actions/checkout@v4.1.7
with: with:
@ -65,34 +57,14 @@ jobs:
echo "$CHANGES" echo "$CHANGES"
if [ -z "$CHANGES" ]; then echo "changes=false" >> "$GITEA_OUTPUT"; else echo "changes=true" >> "$GITEA_OUTPUT"; fi if [ -z "$CHANGES" ]; then echo "changes=false" >> "$GITEA_OUTPUT"; else echo "changes=true" >> "$GITEA_OUTPUT"; fi
- name: Set server URL - name: Bump version and push tag
id: set_srvurl id: tag_version
run: | if: steps.changes.outputs.changes == 'true'
SRVURL=$(echo "${{ gitea.server_url }}" | sed 's/https:\/\/\(.*\)/\1/') uses: mathieudutour/github-tag-action@v6.2
echo "srvurl=$SRVURL" >> "$GITEA_OUTPUT"
- name: Get next version
uses: TriPSs/conventional-changelog-action@v6
id: get_next_version
with: with:
git-url: ${{ steps.set_srvurl.outputs.srvurl }} github_token: ${{ gitea.token }}
github-token: ${{ gitea.token }} default_bump: minor
skip-commit: true # default_bump: false
release-count: 1
output-file: false
create-summary: true
skip-on-empty: true
skip-version-file: true
skip-tag: true
# - name: Bump version and push tag
# id: tag_version
# if: steps.changes.outputs.changes == 'true'
# uses: mathieudutour/github-tag-action@v6.2
# with:
# github_token: ${{ gitea.token }}
# default_bump: minor
# # default_bump: false
- name: Build Changelog - name: Build Changelog
uses: mikepenz/release-changelog-builder-action@v4 uses: mikepenz/release-changelog-builder-action@v4
@ -100,7 +72,6 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ gitea.token }} GITHUB_TOKEN: ${{ gitea.token }}
with: with:
platform: "gitea"
configurationJson: | configurationJson: |
{ {
"pr_template": "- #{{TITLE}} ([##{{NUMBER}}](#{{URL}}))", "pr_template": "- #{{TITLE}} ([##{{NUMBER}}](#{{URL}}))",
@ -131,8 +102,8 @@ jobs:
env: env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with: with:
tag: ${{ steps.get_next_version.outputs.tag }} tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.get_next_version.outputs.tag }} name: ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.build_changelog.outputs.changelog }} body: ${{ steps.build_changelog.outputs.changelog }}
- name: Set success/fail flag - name: Set success/fail flag