···1212 tf-providers:
1313 permissions:
1414 contents: write # for peter-evans/create-pull-request to create branch
1515- pull-requests: write # for peter-evans/create-pull-request to create a PR, for peter-evans/create-or-update-comment to create or update comment
1515+ pull-requests: write # for peter-evans/create-pull-request to create a PR
1616 if: github.repository_owner == 'NixOS' && github.ref == 'refs/heads/master' # ensure workflow_dispatch only runs on master
1717 runs-on: ubuntu-latest
1818 steps:
···3636 --argstr keep-going true \
3737 --argstr max-workers 2 \
3838 --argstr path terraform-providers
3939+ - name: get failed updates
4040+ run: |
4141+ echo 'FAILED<<EOF' >> $GITHUB_ENV
4242+ git ls-files --others >> $GITHUB_ENV
4343+ echo 'EOF' >> $GITHUB_ENV
4444+ # cleanup logs of failed updates so they aren't included in the PR
3945 - name: clean repo
4046 run: |
4147 git clean -f
···47534854 https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }}
49555656+ These providers failed to update:
5757+ ```
5858+ ${{ env.FAILED }}
5959+ ```
6060+5061 Check that all providers build with:
5162 ```
5263 @ofborg build terraform.full
5364 ```
6565+ If there is more than ten commits in the PR `ofborg` won't build it automatically and you will need to use the above command.
5466 branch: terraform-providers-update
5567 delete-branch: false
5668 title: ${{ steps.setup.outputs.title }}