Skip to content

Commit

Permalink
fix: upload-metadata ipfs script
Browse files Browse the repository at this point in the history
  • Loading branch information
leosayous21 committed Jul 11, 2023
1 parent 23f16d2 commit 9fa90fd
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/upload-metdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,26 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

- id: changed-files
uses: ahmadnassri/action-changed-files@v1

- name: content
- name: Get list of changed files from pull request
id: changed-files
env:
GITHUB_TOKEN: ${{ secrets.SISMOBOT_TOKEN }}
run: |
echo 'Changed files:'
echo "${{ steps.changed-files.outputs.files }}"
PR_NUMBER=${{ github.event.issue.number }}
# Make sure jq is installed
sudo apt-get install -y jq
# Fetch the list of files from the GitHub API
FILES=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/sismo-core/app-store/pulls/${PR_NUMBER}/files")
# Use jq to parse out the filenames and join them into one line
FILENAMES=$(echo "$FILES" | jq -r '.[].filename' | tr '\n' ' ')
# Set the output for subsequent steps
echo "::set-output name=files::$FILENAMES"
- name: Get modified spaces and apps
id: updated-spaces
Expand Down

0 comments on commit 9fa90fd

Please sign in to comment.