From bbe10342528a83d67c2dba661279170e61803364 Mon Sep 17 00:00:00 2001 From: Bhanu Bandi Date: Mon, 23 Oct 2023 14:11:09 -0400 Subject: [PATCH] added chlog-update --- .github/workflows/chlog-update.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/chlog-update.yml b/.github/workflows/chlog-update.yml index b7f92aaa61d9..124531eabe6c 100644 --- a/.github/workflows/chlog-update.yml +++ b/.github/workflows/chlog-update.yml @@ -35,20 +35,17 @@ jobs: with: go-version: ~1.21.1 cache: false - - uses: actions/checkout@v1 - - name: run a make update - run: - git checkout -b update-changelog - make chlog-update-aws + - name: make update changelog + run: make chlog-update-aws - name: switching from HTTPS to SSH run: git remote set-url origin https://github.com/amazon-contributing/opentelemetry-collector-contrib.git - name: check for changes - run: | - git status + run: git status - name: stage changed files run: git add . - name: commit changed files - run: | - git commit -am "Update OTel fork components to https://github.com/amazon-contributing/opentelemetry-collector-contrib/commit/${{ steps.get-latest-commit.outputs.sha }}" - git push -u origin HEAD - + run: git commit -m "Auto updating changelog-aws.md" + - name: fetch from master + run: git fetch origin main + - name: push code to master + run: git push origin HEAD:main