diff --git a/.github/workflows/__cla-gist-replicator.yml b/.github/workflows/__cla-gist-replicator.yml index 1ea38e6b..6ad635d4 100644 --- a/.github/workflows/__cla-gist-replicator.yml +++ b/.github/workflows/__cla-gist-replicator.yml @@ -22,22 +22,30 @@ jobs: environment: name: cla-gist url: https://gist.github.com/${{ vars.CLA_GIST_ID }} - strategy: # the action doesn't currently support multiple files - fail-fast: true # false to run all, true to fail entire job if any fail - max-parallel: 1 # let's update files one by one to avoid complications - matrix: - include: - - file_path: 'legal/cla/CLA' - - file_path: 'legal/cla/CLA-entity' - - file_path: 'legal/cla/metadata' steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Deploy Gist + - name: Deploy CLA (indivdual) uses: exuanbo/actions-deploy-gist@47697fceaeea2006a90594ee24eb9cd0a1121ef8 # v1.1.4 with: token: ${{ secrets.GH_BOT_TOKEN }} gist_id: ${{ vars.CLA_GIST_ID }} - file_path: ${{ matrix.file_path }} + file_path: legal/cla/CLA + file_type: text + + - name: Deploy CLA (entity) + uses: exuanbo/actions-deploy-gist@47697fceaeea2006a90594ee24eb9cd0a1121ef8 # v1.1.4 + with: + token: ${{ secrets.GH_BOT_TOKEN }} + gist_id: ${{ vars.CLA_GIST_ID }} + file_path: legal/cla/CLA-entity + file_type: text + + - name: Deploy CLA (metadata) + uses: exuanbo/actions-deploy-gist@47697fceaeea2006a90594ee24eb9cd0a1121ef8 # v1.1.4 + with: + token: ${{ secrets.GH_BOT_TOKEN }} + gist_id: ${{ vars.CLA_GIST_ID }} + file_path: legal/cla/metadata file_type: text