Skip to content

Commit

Permalink
chore(git-sync): auto-applied (#15)
Browse files Browse the repository at this point in the history
This PR is auto-generated by https://github.com/M0NsTeRRR/.github.

---------

Signed-off-by: Ludovic Ortega <[email protected]>
Co-authored-by: Ludovic Ortega <[email protected]>
  • Loading branch information
github-actions[bot] and M0NsTeRRR authored Nov 24, 2024
1 parent b515907 commit 360c20e
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 38 deletions.
6 changes: 3 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
":dependencyDashboard",
":semanticCommits",
":timezone(Europe/Paris)",
"github>M0NsTeRRR/octodns-infomaniak//.github/renovate/labels.json5",
"github>M0NsTeRRR/octodns-infomaniak//.github/renovate/semantic_commits.json5",
"github>M0NsTeRRR/octodns-infomaniak//.github/renovate/devcontainers.json5",
"github>m0nsterrr/octodns-infomaniak//.github/renovate/labels.json5",
"github>m0nsterrr/octodns-infomaniak//.github/renovate/semantic_commits.json5",
"github>m0nsterrr/octodns-infomaniak//.github/renovate/devcontainers.json5",
],
"lockFileMaintenance": {
"enabled": true,
Expand Down
12 changes: 6 additions & 6 deletions .github/renovate/semantic_commits.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
"matchDatasources": ["pypi"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(python)!: ",
"commitMessageTopic": "",
"commitMessageExtra": "( → )"
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "( {{currentVersion}}{{newVersion}} )"
},
{
"matchDatasources": ["pypi"],
"matchUpdateTypes": ["minor"],
"semanticCommitType": "feat",
"semanticCommitScope": "python",
"commitMessageTopic": "",
"commitMessageExtra": "( → )"
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "( {{currentVersion}}{{newVersion}} )"
},
{
"matchDatasources": ["pypi"],
"matchUpdateTypes": ["patch"],
"semanticCommitType": "fix",
"semanticCommitScope": "python",
"commitMessageTopic": "",
"commitMessageExtra": "( → )"
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "( {{currentVersion}}{{newVersion}} )"
},
]
}
8 changes: 4 additions & 4 deletions .github/workflows/automation-sync-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
push:
branches:
- automation-sync
permissions:
contents: read
pull-requests: write
checks: write
permissions: {}
jobs:
create-pull-request:
name: Create Pull Request
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ on:
- edited
- synchronize
- reopened
permissions:
contents: read
pull-requests: read
checks: write
permissions: {}
jobs:
lint-pr:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
checks: write
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
name: python lint
on:
- pull_request
permissions:
contents: read
pull-requests: read
checks: write
permissions: {}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
45 changes: 34 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
push:
tags:
- '*'
permissions:
contents: write
id-token: write
permissions: {}
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
Expand All @@ -28,9 +28,11 @@ jobs:
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
create_draft_release:
create-draft-release:
name: Create release as draft
runs-on: ubuntu-latest
permissions:
contents: write
needs: [changelog]
steps:
- name: Checkout
Expand All @@ -39,29 +41,50 @@ jobs:
run: gh release create ${{ github.ref_name }} -n "${{ needs.changelog.outputs.release_body }}" --draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package:
name: Package
build-package:
name: Build package
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --all-extras
- name: Publish package
- name: Build package
run: |
sed -i -e "s/0.0.0/${GITHUB_REF#refs/*/}/" pyproject.toml
uv build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: dist/
publish-package:
name: Publish package
runs-on: ubuntu-latest
permissions:
id-token: write # needed for signing the images with GitHub OIDC Token
needs: [build-package]
steps:
- name: Downloads artifacts
uses: actions/download-artifact@v4
with:
name: artifacts
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
publish_release:
name: Publish release
runs-on: ubuntu-latest
needs: [create_draft_release, package]
permissions:
contents: write
needs: [create-draft-release, publish-package]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
name: python test
on:
- pull_request
permissions:
contents: read
pull-requests: read
checks: write
permissions: {}
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
strategy:
matrix:
python-version:
Expand All @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project
Expand Down

0 comments on commit 360c20e

Please sign in to comment.