-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: Update workflows to use actions variables (#280)
Reference: https://github.com/hashicorp/terraform-devex-repos/issues/17 Reference: https://github.com/hashicorp/terraform-devex-repos/issues/35
- Loading branch information
Showing
2 changed files
with
8 additions
and
22 deletions.
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 |
---|---|---|
|
@@ -11,10 +11,6 @@ on: | |
permissions: | ||
contents: read # Changelog commit operations use service account PAT | ||
|
||
env: | ||
CI_COMMIT_AUTHOR: hc-github-team-tf-provider-devex | ||
CI_COMMIT_EMAIL: [email protected] | ||
|
||
jobs: | ||
changelog-version: | ||
runs-on: ubuntu-latest | ||
|
@@ -50,11 +46,11 @@ jobs: | |
|
||
- name: Git push changelog | ||
run: | | ||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" | ||
git config --global user.name "${{ vars.TF_DEVEX_CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "${{ vars.TF_DEVEX_CI_COMMIT_EMAIL }}" | ||
git add . | ||
git commit -a -m "Update changelog" | ||
git push "https://${{ env.CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" | ||
git push "https://${{ vars.TF_DEVEX_CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" | ||
release-tag: | ||
needs: changelog | ||
|
@@ -73,11 +69,11 @@ jobs: | |
|
||
- name: Git push release tag | ||
run: | | ||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" | ||
git config --global user.name "${{ vars.TF_DEVEX_CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "${{ vars.TF_DEVEX_CI_COMMIT_EMAIL }}" | ||
git tag "${{ inputs.versionNumber }}" | ||
git push "https://${{ env.CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" "${{ inputs.versionNumber }}" | ||
git push "https://${{ vars.TF_DEVEX_CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" "${{ inputs.versionNumber }}" | ||
release-notes: | ||
needs: [ changelog-version, changelog, release-tag ] | ||
|
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