Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ jobs:
GH_TOKEN: ${{ github.token }}

- name: Pull baseline image data from dvc remote
run: dvc pull --no-run-cache
run: |
dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local
dvc pull --no-run-cache
env:
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}

- name: Configure GMT
run: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/dvc-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
paths:
- '**/*.dvc'

permissions:
contents: read
pull-requests: write

jobs:
dvc-diff:
name: DVC image diff
Expand Down Expand Up @@ -65,7 +69,8 @@ jobs:
# Report last updated at commit abcdef
- name: Generate the image diff report
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}
run: |
echo -e "## Summary of changed images\n" > report.md
echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md
Expand All @@ -74,6 +79,7 @@ jobs:
git fetch origin master

# Pull image data from cloud storage
dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local
dvc pull --remote origin
dvc pull --remote origin
dvc diff --md master HEAD >> report.md
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-baseline-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:

- name: Pull baseline image data from dvc remote
run: |
dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local
dvc pull
ls -lhR test/baseline/
env:
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}

- name: Create the baseline image asset in zip format
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ jobs:
if: runner.os == 'Windows'

- name: Pull baseline image data from dvc remote
run: dvc pull --no-run-cache
run: |
dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local
dvc pull --no-run-cache
env:
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}

- name: Install GMT
run: |
Expand Down
Loading