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