Skip to content

Commit

Permalink
(fix): bump [norelease]
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgreg31 authored May 27, 2023
1 parent 33b39f3 commit 36d5e40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
path: ${{ env.WORK_DIR }}

- name: Bump Version
- name: Download Terraform
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
cd ${{ env.WORK_DIR }}
wget https://releases.hashicorp.com/terraform/0.13.1/terraform_0.13.1_linux_amd64.zip
unzip terraform_0.13.1_linux_amd64.zip
python scripts/bump.py
shell: bash

- name: Bump Version
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: python ${{ env.WORK_DIR }}/scripts/bump.py
shell: bash

# Use [norelease] or release:major | minor | patch to override
Expand Down
2 changes: 1 addition & 1 deletion scripts/bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def update_example() -> None:
data = get_data(f"{WORK_DIR}/example/main.tf", r"source[ \t]+\=.*", replacement)
with open(f"{WORK_DIR}/example/main.tf", "w") as newfile:
newfile.write(data)
os.system(f"./terraform fmt {WORK_DIR}/example/")
os.system(f"{WORK_DIR}/terraform fmt {WORK_DIR}/example/")


def push_changes() -> None:
Expand Down

0 comments on commit 36d5e40

Please sign in to comment.