Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/build-deltalite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,33 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
filter: blob:none
sparse-checkout: |
.github/actions/paths-filter
.github/scripts/post-reminder-section.mjs
frontend/bin/ci-report/update-ci-report.mjs
rust/deltalite/python/Cargo.toml
rust/deltalite/python/pyproject.toml
sparse-checkout-cone-mode: false

- name: Check if rust/deltalite/python/ or the workflow has changed
id: changed-files
if: github.event_name == 'pull_request'
uses: step-security/changed-files@2e07db73e5ccdb319b9a6c7766bd46d39d304bad # v47.0.5
uses: ./.github/actions/paths-filter
with:
files_yaml: |
filters: |
deltalite:
- rust/deltalite/python/**
- 'rust/deltalite/python/**'
workflow:
- .github/workflows/build-deltalite.yml
- '.github/workflows/build-deltalite.yml'

- name: Check if version was bumped
shell: bash
id: version
if: github.event_name == 'pull_request'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DELTALITE_CHANGED: ${{ steps.changed-files.outputs.deltalite_any_changed }}
WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow_any_changed }}
DELTALITE_CHANGED: ${{ steps.changed-files.outputs.deltalite }}
WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow }}
IS_FORK: ${{ github.event.pull_request.head.repo.full_name != 'PostHog/posthog' }}
run: |
deltalite_release_needed='false'
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/build-hogql-parser-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,24 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
filter: blob:none
sparse-checkout: |
.github/actions/paths-filter
.github/scripts/post-reminder-section.mjs
frontend/bin/ci-report/update-ci-report.mjs
rust/hogql/parser/Cargo.toml
rust/hogql/parser/pyproject.toml
sparse-checkout-cone-mode: false

- name: Check if rust/hogql/parser/ or the workflow has changed
id: changed-files
if: github.event_name == 'pull_request'
uses: step-security/changed-files@2e07db73e5ccdb319b9a6c7766bd46d39d304bad # v47.0.5
uses: ./.github/actions/paths-filter
with:
files_yaml: |
filters: |
parser:
- rust/hogql/parser/**
- 'rust/hogql/parser/**'
workflow:
- .github/workflows/build-hogql-parser-rs.yml
- '.github/workflows/build-hogql-parser-rs.yml'

- name: Check if version was bumped
shell: bash
Expand All @@ -48,8 +53,8 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# A manual dispatch is already a release decision, so it checks the version
# without asking which files changed.
PARSER_CHANGED: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.changed-files.outputs.parser_any_changed }}
WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow_any_changed }}
PARSER_CHANGED: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.changed-files.outputs.parser }}
WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow }}
IS_FORK: ${{ github.event.pull_request.head.repo.full_name != 'PostHog/posthog' }}
run: |
parser_release_needed='false'
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/publish-replay-anonymizer-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,27 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
.github/actions/paths-filter
.github/scripts/post-reminder-section.mjs
frontend/bin/ci-report/update-ci-report.mjs
rust/replay-anonymizer/Cargo.toml
sparse-checkout-cone-mode: false

- name: Check if crate code changed
id: changed-files
uses: step-security/changed-files@2e07db73e5ccdb319b9a6c7766bd46d39d304bad # v47.0.5
uses: ./.github/actions/paths-filter
with:
files_yaml: |
filters: |
crate:
- rust/replay-anonymizer/**
- 'rust/replay-anonymizer/**'

- name: Compare crate version against crates.io
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRATE_CHANGED: ${{ steps.changed-files.outputs.crate_any_changed }}
CRATE_CHANGED: ${{ steps.changed-files.outputs.crate }}
IS_FORK: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
if [[ "$CRATE_CHANGED" != 'true' ]]; then
Expand Down
Loading