-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] added a new chloggen to track changes to the contrib #125
Changes from 1 commit
f83becd
b47fa42
59f0f77
9147506
cb5a791
6edbcb3
7135c13
a4f86a5
a7bede2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Update changelog | ||
|
||
on: | ||
pull_request_review: | ||
types: [ submitted ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will trigger every time a PR review is submitted. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-when-a-pull-request-is-approved Is the |
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# updated CHANGELOG-AWS.md back to the repository. | ||
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/ | ||
contents: write | ||
steps: | ||
- name: Checkout action | ||
uses: actions/checkout@v3 | ||
- name : checkout | ||
run : | | ||
git config --global user.name 'Github Action' | ||
git config --global user.email '[email protected]' | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ~1.21.1 | ||
cache: false | ||
- 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 branch | ||
git status | ||
- name: stage changed files | ||
run: git add ./CHANGELOG-AWS.md | ||
- name: commit changed files | ||
run: | | ||
git config --global user.name 'Github Action' | ||
git config --global user.email '[email protected]' | ||
git commit -m "Auto updating changelog-aws.md" | ||
- name: pull from master | ||
run: | | ||
git remote -v | ||
git pull | ||
- name: push code to aws-cwa-dev | ||
run: git push origin aws-cwa-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an empty file, can we remove this?