Merge pull request #194825 from qowoz/tf-update-action

.github/workflows/update-terraform-providers.yml: re-enable

Changed files
+8 -15
.github
pkgs
applications
networking
cluster
terraform-providers
+7 -14
.github/workflows/update-terraform-providers.yml
···
name: "Update terraform-providers"
on:
-
#schedule:
-
# - cron: "14 3 * * 0"
+
schedule:
+
- cron: "0 3 * * *"
workflow_dispatch:
permissions:
···
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
-
pushd pkgs/applications/networking/cluster/terraform-providers
-
./update-all-providers --no-build
-
git commit -m "${{ steps.setup.outputs.title }}" providers.json
-
popd
+
nix-shell \
+
maintainers/scripts/update.nix \
+
--argstr commit true \
+
--argstr keep-going true \
+
--argstr path terraform-providers
- name: create PR
uses: peter-evans/create-pull-request@v4
with:
···
```
branch: terraform-providers-update
delete-branch: false
-
labels: "2.status: work-in-progress"
title: ${{ steps.setup.outputs.title }}
token: ${{ secrets.GITHUB_TOKEN }}
-
- name: comment on failure
-
uses: peter-evans/create-or-update-comment@v2
-
if: ${{ failure() }}
-
with:
-
issue-number: 153416
-
body: |
-
Automatic update of terraform providers [failed](https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }}).
+1 -1
pkgs/applications/networking/cluster/terraform-providers/default.nix
···
passthru = attrs // {
updateScript = writeShellScript "update" ''
provider="$(basename ${provider-source-address})"
-
./pkgs/applications/networking/cluster/terraform-providers/update-provider --no-build "$provider"
+
./pkgs/applications/networking/cluster/terraform-providers/update-provider "$provider"
'';
};
});