Skip to content

Commit

Permalink
added chlog-update
Browse files Browse the repository at this point in the history
  • Loading branch information
bhanuba committed Oct 23, 2023
1 parent 3e0dbdc commit ffeb088
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/chlog-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,12 @@ jobs:
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
contents: write
steps:
- name: Get latest commit sha
id: get-latest-commit
run: |
if ["${{ inputs.CommitSha }}" == ""]; then
echo "sha=$(git ls-remote ${{ env.UPSTREAM }} ${{ env.UPSTREAM_BRANCH }} | awk '{print $1;}')" >> $GITHUB_OUTPUT
else
echo "sha=${{ inputs.CommitSha }}" >> $GITHUB_OUTPUT
fi
- name: Checkout
uses: actions/checkout@v3
run: |
git config --global user.name 'Github Action'
git config --global user.email '[email protected]'
git checkout ${{ env.UPSTREAM_BRANCH }}
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
Expand All @@ -40,7 +36,9 @@ jobs:
- name: switching from HTTPS to SSH
run: git remote set-url origin UPSTREAM
- name: check for changes
run: git status
run: |
git branch
git status
- name: stage changed files
run: git add .
- name: commit changed files
Expand All @@ -49,6 +47,6 @@ jobs:
git config --global user.email '[email protected]'
git commit -m "Auto updating changelog-aws.md"
- name: fetch from master
run: git fetch upstream
run: git fetch UPSTREAM
- name: push code to master
run: git push origin CWQS-761

0 comments on commit ffeb088

Please sign in to comment.