{"id":23545522,"url":"https://github.com/bh2smith/dune-update","last_synced_at":"2026-01-24T14:03:49.108Z","repository":{"id":230213748,"uuid":"778701413","full_name":"bh2smith/dune-update","owner":"bh2smith","description":"A GitHub Action for saving query changes","archived":false,"fork":false,"pushed_at":"2024-10-21T13:12:22.000Z","size":1299,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T03:13:51.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bh2smith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-28T08:26:02.000Z","updated_at":"2025-04-14T12:53:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c4c0bfb-319c-4967-b480-79cefb3f448f","html_url":"https://github.com/bh2smith/dune-update","commit_stats":null,"previous_names":["bh2smith/dune-update"],"tags_count":7,"template":false,"template_full_name":"actions/javascript-action","purl":"pkg:github/bh2smith/dune-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fdune-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fdune-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fdune-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fdune-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bh2smith","download_url":"https://codeload.github.com/bh2smith/dune-update/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fdune-update/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28729411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-26T08:18:43.648Z","updated_at":"2026-01-24T14:03:49.085Z","avatar_url":"https://github.com/bh2smith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create a JavaScript Action\n\n[![GitHub Super-Linter](https://github.com/actions/javascript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)\n![CI](https://github.com/actions/javascript-action/actions/workflows/ci.yml/badge.svg)\n\n## How to Use this Action\n\nThe expected workflow for query updates is that changes to query files are made\nthrough a pull request. One the pull request is merged to main, the action will\ntrigger an update of all queries that were edited in the PR.\n\nHere is a sample workflow:\n\n```yaml\nname: On Merge to Main\n\non:\n  push:\n    branches: [main]\n\njobs:\n  update-queries:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0 # Necessary to get a complete history for diff\n\n      - name: Install necessary tools\n        run: sudo apt-get install -y jq # Installing jq for JSON processing\n\n      - name: Get list of changed files in \"queries\" directory\n        id: get-changed-files\n        run: |\n          CHANGED_FILES=$(git diff \\\n            --name-only --diff-filter=ACMRT \\\n            ${{ github.event.before }} ${{ github.sha }} \\\n            -- queries | paste -sd \",\" -)\n          echo \"CHANGED_FILES=$CHANGED_FILES\" \u003e\u003e $GITHUB_ENV\n          echo \"changed_files=$CHANGED_FILES\" \u003e\u003e $GITHUB_OUTPUT\n\n      - name: Update Queries\n        uses: bh2smith/dune-update@v0.0.0-beta.2\n        with:\n          changedQueries: ${{ steps.get-changed-files.outputs.changed_files }}\n          duneApiKey: ${{ secrets.DUNE_API_KEY }}\n```\n\nThis expects that queries are saved in `./queries/`. Note that all query file\nnames must be formatted as `*_{queryId}.sql`.\n\nFor a real example of this workflow in action, please visit this\n[Demo Project](https://github.com/bh2smith/demo-ts-dune-client)! Specifically\n\n- [this workflow](https://github.com/bh2smith/demo-ts-dune-client/blob/main/.github/workflows/ci.yaml)\n  and\n- [this successful run](https://github.com/bh2smith/demo-ts-dune-client/actions/runs/8479606867/job/23233904550)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbh2smith%2Fdune-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbh2smith%2Fdune-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbh2smith%2Fdune-update/lists"}