exclude base auctions (#293) #255
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: Sync to Dune | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| update-queries: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Necessary to get a complete history for diff | |
| - name: Get list of changed files in a specific directory | |
| id: get-changed-files | |
| run: | | |
| CHANGED_FILES=$(git diff \ | |
| --name-only --diff-filter=d ${{ github.event.before }} ${{ github.sha }} \ | |
| -- *.sql | paste -sd "," -) | |
| echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV | |
| echo "changed_files=$CHANGED_FILES" >> $GITHUB_OUTPUT | |
| - name: Update Queries | |
| uses: bh2smith/[email protected] | |
| with: | |
| changedQueries: ${{ steps.get-changed-files.outputs.changed_files }} | |
| duneApiKey: ${{ secrets.DUNE_API_KEY }} |