chore: Drop unused imports, variables, suppress ty import warnings #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
|
||
| secrets: inherit | ||
| with: | ||
| enable_cleanup: true | ||