.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 tf-providers: 13 permissions: 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 16 if: github.repository_owner == 'NixOS' && github.ref == 'refs/heads/master' # ensure workflow_dispatch only runs on master 17 runs-on: ubuntu-latest 18 steps: ··· 36 --argstr keep-going true \ 37 --argstr max-workers 2 \ 38 --argstr path terraform-providers 39 - name: clean repo 40 run: | 41 git clean -f ··· 47 48 https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }} 49 50 Check that all providers build with: 51 ``` 52 @ofborg build terraform.full 53 ``` 54 branch: terraform-providers-update 55 delete-branch: false 56 title: ${{ steps.setup.outputs.title }}
··· 12 tf-providers: 13 permissions: 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 16 if: github.repository_owner == 'NixOS' && github.ref == 'refs/heads/master' # ensure workflow_dispatch only runs on master 17 runs-on: ubuntu-latest 18 steps: ··· 36 --argstr keep-going true \ 37 --argstr max-workers 2 \ 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 45 - name: clean repo 46 run: | 47 git clean -f ··· 53 54 https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }} 55 56 + These providers failed to update: 57 + ``` 58 + ${{ env.FAILED }} 59 + ``` 60 + 61 Check that all providers build with: 62 ``` 63 @ofborg build terraform.full 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. 66 branch: terraform-providers-update 67 delete-branch: false 68 title: ${{ steps.setup.outputs.title }}