Create project copy #38
Workflow file for this run
This file contains 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: Upload data to sanity project | |
on: | |
workflow_dispatch: | |
inputs: | |
sanity-project-id: | |
required: true | |
type: string | |
sanity-project-dataset: | |
required: true | |
type: string | |
jobs: | |
upload-data: | |
runs-on: ubuntu-latest | |
env: | |
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ inputs.sanity-project-id }} | |
NEXT_PUBLIC_SANITY_DATASET: ${{ inputs.sanity-project-dataset }} | |
name: Upload data | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Upload dataset | |
uses: sanity-io/[email protected] | |
env: | |
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }} | |
with: | |
# args: . debug --secrets | |
# args: . dataset list | |
# dataset import prod-copy.tar.gz production | |
# correct CLI command (env sanity project should be with empty dataset): | |
# sanity dataset import prod-copy.tar.gz production | |
args: . dataset import prod-copy.tar.gz production | |
- name: Add sanity webhook | |
run: echo "Add sanity webhook" | |
# run `npm fund` for details | |
# 3 vulnerabilities (1 low, 2 moderate) | |
# To address all issues, run: | |
# npm audit fix --force | |
# Run `npm audit` for details. | |
# - Resolving latest versions |