Merge remote-tracking branch 'origin/NB-47-Upgrade-v4' into NB-47-Upg… #129
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: CI | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: { } | |
push: | |
branches: | |
- '*' | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z]+[0-9]+)? | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
pre_commit: | |
name: Run lint rules | |
runs-on: ubuntu-22.04-sh | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.10' | |
- uses: pre-commit/[email protected] | |
test: | |
runs-on: ubuntu-22.04-sh | |
name: Runs plugin tests | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Login to Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: registry.tangience.net | |
username: ${{ secrets.HARBOR_USERNAME }} | |
password: ${{ secrets.HARBOR_PASSWORD }} | |
- name: Test the image | |
run: ./test.sh | |
changelog: | |
name: "Changelog Generator" | |
runs-on: ubuntu-22.04-sh | |
needs: | |
- test | |
timeout-minutes: 30 | |
if: github.event_name == 'release' | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: "Generate changelog" | |
uses: charmixer/[email protected] | |
with: | |
exclude_labels: "type: skip ci,status: abandoned,type: duplicate,type: question,type: wontfix,type: invalid" | |
token: ${{ secrets.GIT_TOKEN }} | |
- name: Commit and push to dev | |
uses: EndBug/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | |
with: | |
add: "CHANGELOG.md" | |
message: "[skip ci] Updated CHANGELOG.md" | |
new_branch: dev | |
push: origin dev --set-upstream | |
committer_name: GitHub Actions | |
committer_email: [email protected] | |
default_author: github_actions |