Skip to content

Commit

Permalink
add: matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jz8132543 committed Sep 21, 2024
1 parent f6f4e33 commit 87096c2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ jobs:
with:
name: logs-plan
path: logs
- name: Notify
if: steps.plan.outputs.diff == 'true'
run: |
set -e
nix develop ./flakes --command sops exec-file infrastructure-secrets/terraform-outputs.yaml 'yq ".ntfy_sh_topic_secret.value" "{}" > ntfy-topic-secret'
stdout_log_url=$(curl -F "c=@logs/terraform-plan.stdout.log" https://pb.dora.im)
stderr_log_url=$(curl -F "c=@logs/terraform-plan.stderr.log" https://pb.dora.im)
curl \
--header "Title: Terraform" \
--header "Tags: terraform" \
--data "Terraform planned
stdout: $stdout_log_url
stderr: $stderr_log_url" \
"https://ntfy.sh/main-$(cat ntfy-topic-secret)"
# - name: Notify
# if: steps.plan.outputs.diff == 'true'
# run: |
# set -e
# nix develop ./flakes --command sops exec-file infrastructure-secrets/terraform-outputs.yaml 'yq ".ntfy_sh_topic_secret.value" "{}" > ntfy-topic-secret'
# stdout_log_url=$(curl -F "c=@logs/terraform-plan.stdout.log" https://pb.dora.im)
# stderr_log_url=$(curl -F "c=@logs/terraform-plan.stderr.log" https://pb.dora.im)
# curl \
# --header "Title: Terraform" \
# --header "Tags: terraform" \
# --data "Terraform planned
# stdout: $stdout_log_url
# stderr: $stderr_log_url" \
# "https://ntfy.sh/main-$(cat ntfy-topic-secret)"

apply:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 87096c2

Please sign in to comment.