.github/workflows/update-terraform-providers.yml: various

- removed outdated permissions comment

- add failed updates step

- add failed updates and ofborg rebuild to PR body

zowoq ab693050 8e6f872c

+13 -1
+13 -1
.github/workflows/update-terraform-providers.yml
··· 12 12 tf-providers: 13 13 permissions: 14 14 contents: write # for peter-evans/create-pull-request to create branch 15 - 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 15 + pull-requests: write # for peter-evans/create-pull-request to create a PR 16 16 if: github.repository_owner == 'NixOS' && github.ref == 'refs/heads/master' # ensure workflow_dispatch only runs on master 17 17 runs-on: ubuntu-latest 18 18 steps: ··· 36 36 --argstr keep-going true \ 37 37 --argstr max-workers 2 \ 38 38 --argstr path terraform-providers 39 + - name: get failed updates 40 + run: | 41 + echo 'FAILED<<EOF' >> $GITHUB_ENV 42 + git ls-files --others >> $GITHUB_ENV 43 + echo 'EOF' >> $GITHUB_ENV 44 + # cleanup logs of failed updates so they aren't included in the PR 39 45 - name: clean repo 40 46 run: | 41 47 git clean -f ··· 47 53 48 54 https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }} 49 55 56 + These providers failed to update: 57 + ``` 58 + ${{ env.FAILED }} 59 + ``` 60 + 50 61 Check that all providers build with: 51 62 ``` 52 63 @ofborg build terraform.full 53 64 ``` 65 + 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. 54 66 branch: terraform-providers-update 55 67 delete-branch: false 56 68 title: ${{ steps.setup.outputs.title }}