Skip to content

chore: Drop unused imports, variables, suppress ty import warnings #27

chore: Drop unused imports, variables, suppress ty import warnings

chore: Drop unused imports, variables, suppress ty import warnings #27

name: deploy pipeline
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '**/dag/**'
- '**/tasks/**'
permissions:
contents: write
id-token: write
jobs:
check-initial-commit:
runs-on: ubuntu-latest
outputs:
is_initial: ${{ steps.check_init.outputs.is_initial }}
steps:
- uses: actions/checkout@v3
- name: Check if this is the initial commit and commit message is "Initial commit"
id: check_init
run: |
count=$(git rev-list --count HEAD)
message=$(git log -1 --pretty=%B)
if [ "$count" -eq 1 ] && [ "$message" = "Initial commit" ]; then
echo "is_initial=true" >> $GITHUB_OUTPUT
else
echo "is_initial=false" >> $GITHUB_OUTPUT
fi
reuse-deploy-data-pipeline:
needs: check-initial-commit
if: needs.check-initial-commit.outputs.is_initial == 'false'
uses: SWRData/workflows-swr-data-lab/.github/workflows/deploy_data_pipeline.yml@main

Check failure on line 36 in .github/workflows/deploy-pipeline.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-pipeline.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/deploy-pipeline.yaml" -> "SWRData/workflows-swr-data-lab/.github/workflows/deploy_data_pipeline.yml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
secrets: inherit
with:
enable_cleanup: true