Skip to content

Commit

Permalink
Merge branch 'main' into doc/ci-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinebrasil authored Dec 9, 2024
2 parents ef82f4e + de32b13 commit 4ee2099
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Kubeconfig
run: aws eks --region $AWS_REGION update-kubeconfig --name $EKS_CLUSTER_NAME

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -131,6 +128,9 @@ jobs:
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
aws-region: ${{ env.AWS_REGION }}

- name: Setup Kubeconfig
run: aws eks --region $AWS_REGION update-kubeconfig --name $EKS_CLUSTER_NAME

- name: Deploy app in Kubernetes cluster
env:
NEW_VERSION: ${{ needs.version.outputs.semver_tag }}
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/test-create-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: test-create-pr
name: Create PR to update CHANGELOG.md
on:
push:
branches:
- "*"
tags:
- '*'

jobs:
pr-create:
Expand All @@ -13,10 +13,15 @@ jobs:
with:
token: ${{ secrets.PAT_TOKEN }}

- name: Get the latest tag
id: get_tag
run: echo "::set-output name=tag::$(git describe --tags `git rev-list --tags --max-count=1`)"

- name: Update changelog
run: |
echo "## [${{ github.sha }}] - $(date +'%d-%m-%Y')" >> CHANGELOG.md
sed -i "1i ## [${{ github.sha }}] - $(date +'%d-%m-%Y')\n\n### Added\n" CHANGELOG.md
LATEST_TAG=${{ steps.get_tag.outputs.tag }}
echo "## [${LATEST_TAG}] - $(date +'%d-%m-%Y')" >> CHANGELOG.md
sed -i "1i ## [${LATEST_TAG}] - $(date +'%d-%m-%Y')\n\n### Added\n" CHANGELOG.md
- name: Generate PR to commit changes using github-actions-bot
uses: peter-evans/create-pull-request@v3
Expand Down

0 comments on commit 4ee2099

Please sign in to comment.