8000 GitHub - makerdao-dux/github-action-deploy-delegates
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

makerdao-dux/github-action-deploy-delegates

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Action Deploy Delegates

This action analyzes the configured "delegates" folder and parses the data to create a single array with delegates that gets pushed to a decentralized storage.

Inputs

delegates-folder

Required The path to the folder with the delegates information. Default: governance/delegates.

voting-committees-folder

Required The path to the folder with the DVCs information. Default: governance/voting-committees.

tags-file

Required The file with the tags mapping/definitions. Default: governance/delegates/meta/tags.json.

web3-storage-token

Optional web3.storage api token. At least one storage token required.

nft-storage-token

Optional nft.storage api token. At least one storage token required.

output-file

If specified, the path of the file to be written to disk

Outputs

hash

The file hash that has been uploaded to the decentralized storage.

Example usage

uses: makerdao-dux/github-action-deploy-delegates@v1.1.15
with:
  delegates-folder: "governance/delegates"
  tags-file: "governance/delegates/meta/tags.json"
  web3-storage-token: ${{ secrets.WEB3_STORAGE_TOKEN }}
  nft-storage-token: ${{ secrets.NFT_STORAGE_TOKEN }}

Full example:

on: [pull_request, push]

jobs:
  upload_delegates:
    runs-on: ubuntu-latest
    name: Parses all the delegates and uploads all to IPFS
    steps:
      - uses: actions/checkout@v3
      - name: Upload
        id: upload
        uses: makerdao-dux/github-action-deploy-delegates@v1.1.15
        with:
          delegates-folder: 'governance/delegates'
          tags-file: 'governance/delegates/meta/tags.json'
          web3-storage-token: ${{ secrets.WEB3_STORAGE_TOKEN }}
          nft-storage-token: ${{ secrets.NFT_STORAGE_TOKEN }}
          output-file: 'governance/delegates/data.json'
      # Use the output from the `upload` step
      - name: Get the output hash
        run: echo "The IPFS hash was ${{ steps.upload.outputs.hash }}"

Based on:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0