-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hashicorp:main' into update-windows-hotpatch-images
- Loading branch information
Showing
11,926 changed files
with
217,448 additions
and
184,543 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
schema_version = 1 | ||
|
||
project { | ||
license = "MPL-2.0" | ||
copyright_year = 2023 | ||
|
||
header_ignore = [ | ||
".ci/**", | ||
".github/**", | ||
".teamcity/**", | ||
".release/**", | ||
"vendor/**", | ||
"internal/**/**_gen.go", # Pandora generated files | ||
".goreleaser.yml", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.github/workflows/automation-open-pull-request-go-sdk.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Open Pull Request when an `auto-pr` is pushed for go-azure-sdk | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'auto-deps-pr/updating-go-azure-sdk-to-**' | ||
|
||
jobs: | ||
open-pull-request: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: "open a pull request" | ||
id: open-pr | ||
run: | | ||
version="$(echo $GH_REF | sed "s/auto-deps-pr\/updating-go-azure-sdk-to-//")" | ||
title="dependencies: updating \`hashicorp/go-azure-sdk\` to \`${version}\`" | ||
body="This PR updates \`hashicorp/go-azure-sdk\` to \`${version}\` - further details can be found in a comment." | ||
# this runs everytime the PR gets pushed too, whilst you can only create a PR a single time | ||
# so we should be smarter, but piping this to /dev/null is a fine workaround for MVP | ||
gh pr create --title "$title" --body "$body" -B "$PR_TARGET" > /dev/null | ||
env: | ||
PR_TARGET: "main" | ||
GH_TOKEN: ${{ secrets.SERVICE_ACCOUNT_TERRAFORM_TOKEN }} | ||
GH_REF: ${{ github.ref_name }} |
29 changes: 29 additions & 0 deletions
29
.github/workflows/automation-open-pull-request-pandora.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Open Pull Request when an `auto-pr` is pushed for Pandora | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'auto-pr/**' # deprecated | ||
- 'auto-pandora-pr/**' | ||
|
||
jobs: | ||
open-pull-request: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: "open a pull request" | ||
id: open-pr | ||
run: | | ||
# this runs everytime the PR gets pushed too, whilst you can only create a PR a single time | ||
# so we should be smarter, but piping this to /dev/null is a fine workaround for MVP | ||
gh pr create --title "$PR_TITLE" --body "$PR_BODY" -B "$PR_TARGET" > /dev/null | ||
env: | ||
PR_TITLE: "Auto PR: Regenerating based on (${{ github.sha }})" | ||
PR_BODY: "Regenerating the Terraform Provider based on the latest changes" | ||
PR_TARGET: "main" | ||
GH_TOKEN: ${{ secrets.SERVICE_ACCOUNT_TERRAFORM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Comment Failure | ||
|
||
on: | ||
# This file is reused, and called from other workflows | ||
workflow_call: | ||
|
||
jobs: | ||
comment-failure: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get run url | ||
if: failure() | ||
run: | | ||
echo "gha_url=https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" >> $GITHUB_ENV | ||
- name: Send build failure comment | ||
if: failure() | ||
uses: actions/github-script@v6 | ||
with: | ||
result-encoding: string | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: ${{ github.event.number }}, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '<b>Build failure</b> \n\n This pull request contains a build failure which needs addressed [here](${{ env.gha_url}}) .' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Resource Document Linting | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "synchronize"] | ||
paths: | ||
- ".github/workflows/document-lint.yaml" | ||
- "internal/services/**" | ||
- "website/**" | ||
branches: ["main"] | ||
|
||
jobs: | ||
document-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: ./.go-version | ||
- run: bash scripts/gogetcookie.sh | ||
- run: make document-lint | ||
continue-on-error: true | ||
- name: check lint result | ||
if: failure() | ||
run: | | ||
echo "::warning::Document linting failed. Please fix the issues." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.