Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
ci: open a PR to bump lead-environments after a release (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexashley authored Oct 22, 2021
1 parent dffa145 commit 490cc66
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ concurrency:
jobs:
release:
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.release.outputs.changed }}
previousVersion: ${{ steps.release.outputs.previousVersion }}
newVersion: ${{ steps.release.outputs.newVersion }}
steps:
- name: Checkout Code
uses: actions/checkout@v2
Expand All @@ -28,3 +32,28 @@ jobs:
uses: liatrio/github-actions/conventional-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update:
needs: release
runs-on: ubuntu-latest
if: needs.release.outputs.changed == 'true'
steps:
- name: Checkout lead-environments
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
repository: ${{ github.repository_owner }}/lead-environments
token: ${{ secrets.GITTY_UP_TOKEN }}
- name: Update Version Manifest
uses: liatrio/github-actions/gitops-update-yaml@master
with:
file: aws/liatrio-non-prod/manifest.yml
path: .lead_terraform_version
value: ${{ needs.release.outputs.newVersion }}
- name: Create Pull Request
uses: liatrio/github-actions/gitops-gh-pr@master
with:
repo: ${{ github.repository_owner }}/lead-environments
token: ${{ secrets.GITTY_UP_TOKEN }}
commit-prefix: "build"
message: "update lead-terraform from ${{ needs.release.outputs.previousVersion }} to ${{ needs.release.outputs.newVersion }}"

0 comments on commit 490cc66

Please sign in to comment.