Compare commits

...

10 Commits

Author SHA1 Message Date
4a9d85d9e7 chore(deps): update dependency pytest to v8.3.4
All checks were successful
CI / ci (pull_request) Successful in 2m12s
2025-01-01 01:01:56 +00:00
a4805b5b6c
fix(ci): update URL of CI workflow dynamically 2025-01-01 00:59:38 +00:00
6b67657897
fix(ci): update URL of CI workflow dynamically 2025-01-01 00:56:42 +00:00
bd7c145e0d
fix(ci): update URL of CI workflow dynamically 2025-01-01 00:55:08 +00:00
98a96a6a24
fix(ci): update URL of CI workflow 2025-01-01 00:49:25 +00:00
e39637d227
fix(ci): fix manual release trigger
You must always use the `${{ }}` expression syntax when negating (`!`).
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/using-conditions-to-control-job-execution
2025-01-01 00:43:01 +00:00
54f9c42826
fix(ci): fix manual release trigger 2025-01-01 00:40:25 +00:00
377e1671c2
chore(ci): allow manual trigger via issue
All checks were successful
CI / ci (pull_request) Successful in 1m50s
2025-01-01 00:34:17 +00:00
12a4cb58e0
chore(ci): allow manual trigger via issue
All checks were successful
CI / ci (pull_request) Successful in 1m52s
2025-01-01 00:32:27 +00:00
191ba2b20d
chore(ci): allow manual trigger via issue
All checks were successful
CI / ci (pull_request) Successful in 2m41s
2025-01-01 00:20:05 +00:00
2 changed files with 35 additions and 3 deletions

View File

@ -21,7 +21,7 @@ pluggy==1.5.0
pre-commit==4.0.1
pylint==3.2.6
pylint-exit==1.2.0
pytest==8.3.3
pytest==8.3.4
PyYAML==6.0.2
setuptools==75.6.0
tomlkit==0.13.2

View File

@ -2,14 +2,46 @@ name: Release
on:
schedule:
- cron: "0 9 * * 0"
- cron: "0 0 * * *" # Testing
issue_comment:
types: [created]
jobs:
check_manual_trigger:
runs-on: ubuntu-latest
steps:
- name: Log event metadata
run: |
echo "Issue: ${{ gitea.event.issue.number }}"
echo "Comment: ${{ gitea.event.comment.body }}"
echo "User: ${{ gitea.event.comment.user.login }}"
- name: Stop workflow if required conditions are not met
if: ${{ !contains(gitea.event.issue.number, '436') || !contains(gitea.event.comment.body, '/trigger-release') || !contains(gitea.event.comment.user.login, 'luke') }}
run: exit 1
get_latest_tag:
name: Get latest tag
runs-on: ubuntu-latest
needs: check_manual_trigger
outputs:
latesttag: ${{ steps.latesttag.outputs.latesttag }}
steps:
- uses: actions/checkout@v4.1.7
- name: Get latest tag
id: latesttag
run: |
git fetch --tags
echo "latesttag=$(git describe --tags --abbrev=0)" >> "$GITEA_OUTPUT"
test:
uses: https://git.tainton.uk/public/webexmemebot/src/branch/main/.gitea/workflows/ci.yml
name: Unit Test
needs: get_latest_tag
uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@${{ needs.get_latest_tag.outputs.latesttag }}
create_release:
name: Create Release
runs-on: ubuntu-latest
needs: test
outputs:
release_name: ${{ steps.tag_version.outputs.new_tag }}
success: ${{ steps.set_flag.outputs.success }}