Skip to content

Commit

Permalink
Merge pull request #1651 from hashicorp/crt-pre-release
Browse files Browse the repository at this point in the history
Enable pre releases via CRT
  • Loading branch information
ansgarm authored Feb 29, 2024
2 parents d2e0205 + b8dc690 commit 6859588
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: build-pr

on:
pull_request:
branches-ignore:
- pre-release

env:
GOPROXY: https://proxy.golang.org/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- pre-release

permissions:
actions: write
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ on:
type: string
branch:
description: 'Branch'
type: string
required: true
type: choice
default: main
options:
- main
- pre-release

jobs:
staging:
Expand All @@ -30,7 +34,7 @@ jobs:
BOB_GITHUB_TOKEN: ${{ secrets.BOB_GITHUB_TOKEN }}
VERSION: ${{ github.event.inputs.version }}
SHA: ${{ github.event.inputs.sha }}
BRANCH: main
BRANCH: ${{ github.event.inputs.branch }}
ENVIRONMENT: staging
run: |
bob trigger-promotion \
Expand Down Expand Up @@ -58,7 +62,7 @@ jobs:
BOB_GITHUB_TOKEN: ${{ secrets.BOB_GITHUB_TOKEN }}
VERSION: ${{ github.event.inputs.version }}
SHA: ${{ github.event.inputs.sha }}
BRANCH: main
BRANCH: ${{ github.event.inputs.branch }}
ENVIRONMENT: production
run: |
bob trigger-promotion \
Expand Down
2 changes: 1 addition & 1 deletion .release/ci.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ project "terraform-ls" {
github {
organization = "hashicorp"
repository = "terraform-ls"
release_branches = ["main"]
release_branches = ["main", "pre-release"]
}
}

Expand Down

0 comments on commit 6859588

Please sign in to comment.