Skip to content

Commit

Permalink
ci: only refresh tags if connector code is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Mar 19, 2024
1 parent 0896361 commit 9c34927
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/actions/deploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ runs:
shell: bash
run: sudo apt install postgresql

- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
connector:
- "${{ inputs.connector }}/**"
- name: Refresh connector tags for ${{ inputs.connector }}
if: ${{ github.event_name == 'push' }}
if: github.event_name == 'push' && steps.filter.outputs.connector == 'true'
shell: bash
env:
PGDATABASE: ${{ inputs.pg_database }}
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,15 @@ jobs:
sudo apt update
sudo apt install postgresql
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
connector:
- "${{ matrix.connector }}/**"
- name: Refresh connector tags for ${{ matrix.connector }}
if: ${{ github.event_name == 'push' }}
if: github.event_name == 'push' && steps.filter.outputs.connector == 'true'
env:
PGHOST: ${{ secrets.POSTGRES_CONNECTOR_REFRESH_HOST }}
PGUSER: ${{ secrets.POSTGRES_CONNECTOR_REFRESH_USER }}
Expand Down

0 comments on commit 9c34927

Please sign in to comment.