-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.64 KB
/
tf-sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:
schedule:
# Adjust the cron schedule as needed.
# Runs "At every 10th minute." (https://crontab.guru/#*/10_*_*_*_*)
- cron: "*/10 * * * *"
env:
POLYTOMIC_API_KEY: ${{ secrets.POLYTOMIC_API_KEY }}
jobs:
pull-request:
environment: exporter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create output directory
run: |
mkdir -p terraform
- name: Polytomic Terraform Sync
uses: polytomic/[email protected]
with:
api_key: ${{ env.POLYTOMIC_API_KEY }}
# Create a pull request with the changes.
# Comment this step out if you want to commit the changes directly to the default branch.
# See the "Commit changes" step below.
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Sync terraform
title: Polytomic Terraform Sync
body: |
This is a pull request by [Polytomic](https://polytomic.com) to sync terraform configuration.
_Auto-generated by polytomic terraform sync_
# This is the branch that will be used to create the pull request.
# It will be created if it doesn't already exist.
# The default value is "polytomic-terraform".
branch: polytomic-terraform
# Uncomment the following steps if you want to commit the changes directly to the default branch.
# Comment out the "Create Pull Request" step above.
# This will commit the changes directly to the default branch. Use with caution.
# - name: Commit changes
# uses: EndBug/add-and-commit@v9