Skip to content

deploy: Migrate GADM geometry data to PostGIS-enabled PostgreSQL DB. #54

deploy: Migrate GADM geometry data to PostGIS-enabled PostgreSQL DB.

deploy: Migrate GADM geometry data to PostGIS-enabled PostgreSQL DB. #54

Workflow file for this run

name: Directory Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-dirs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches, fix it later
- name: Get base SHA for push event
if: github.event_name == 'push'
run: echo "PARENT_SHA=${{ github.event.before }}" >> $GITHUB_ENV
- name: Get base SHA for pull_request event
if: github.event_name == 'pull_request'
run: echo "PARENT_SHA=${{ github.event.pull_request.base.sha }}" >> $GITHUB_ENV
- name: Check directories
run: |
#Get the parent commit from GH action context
./.shared-scripts/check_directories.sh github-action ${{ env.PARENT_SHA }}