diff --git a/.github/workflows/doc-changes.yml b/.github/workflows/doc-changes.yml new file mode 100644 index 0000000..053a51c --- /dev/null +++ b/.github/workflows/doc-changes.yml @@ -0,0 +1,23 @@ +name: doc-changes + +on: + pull_request_target: + branches: + - main + types: + - closed + +jobs: + latest-changes: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + - run: pip install "laminci[doc-changes]@git+https://github.com/laminlabs/laminci" + - run: laminci doc-changes + env: + repo_token: ${{ secrets.GITHUB_TOKEN }} + docs_token: ${{ secrets.LAMIN_BUILD_DOCS }} + changelog_file: lamin-docs/docs/changelog/soon/usecases.md diff --git a/.github/workflows/latest-changes.jinja2 b/.github/workflows/latest-changes.jinja2 deleted file mode 100644 index dd5ed40..0000000 --- a/.github/workflows/latest-changes.jinja2 +++ /dev/null @@ -1,2 +0,0 @@ -{{pr.title}} | [{{pr.number}}]({{pr.html_url}}) | [{{pr.user.login}}]({{pr.user.html_url}}) | {{pr.closed_at.date().isoformat()}} | - diff --git a/.github/workflows/latest-changes.yml b/.github/workflows/latest-changes.yml deleted file mode 100644 index 0f4691c..0000000 --- a/.github/workflows/latest-changes.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: latest-changes - -on: - pull_request_target: - branches: - - main - types: - - closed - workflow_dispatch: - inputs: - number: - description: PR number - required: true - -jobs: - latest-changes: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: docker://tiangolo/latest-changes:0.0.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - latest_changes_file: docs/changelog.md - latest_changes_header: '--- \| --- \| --- \| --- \| ---\n' - template_file: ./.github/workflows/latest-changes.jinja2