From 0aab129ca169841799a40d2101d0a3cb927d9b3d Mon Sep 17 00:00:00 2001 From: Jon Schwartz Date: Wed, 5 Oct 2022 21:00:55 -0700 Subject: [PATCH] Add action for updating actor info --- .github/workflows/actorcodes.yml | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/actorcodes.yml diff --git a/.github/workflows/actorcodes.yml b/.github/workflows/actorcodes.yml new file mode 100644 index 00000000..58a82554 --- /dev/null +++ b/.github/workflows/actorcodes.yml @@ -0,0 +1,53 @@ +name: update actor codes + +on: + workflow_dispatch: + +env: + node_version: 16 + git_email: jpschwartz2@uwalumni.com + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + repository: glifio/filecoin-descriptors + submodules: recursive + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + - run: | + go get ./... + go run *.go + + - uses: actions/upload-artifact@v3 + with: + name: actor-info + path: output/ + + - uses: actions/checkout@v3 + + - run: rm -rf packages/filecoin-actor-utils/src/data + - run: mkdir -p packages/filecoin-actor-utils/src/data + + - uses: actions/download-artifact@v3 + with: + name: actor-info + path: packages/filecoin-actor-utils/src/data + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + commit-message: Update actor-info + committer: ${{ github.actor }} <${{ env.git_email }}> + author: ${{ github.actor }} <${{ env.git_email }}> + branch: actions/update-actor-info + delete-branch: true + title: "Update actor codes and descriptors" + body: "Update actor codes and descriptors" + labels: | + automated pr