Skip to content

Commit

Permalink
Testing commit to main #5
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Aug 22, 2024
1 parent 08b4175 commit 77b57e8
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/updateChangelogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ on:
jobs:
update-changelog-files:
runs-on: ubuntu-latest
permissions:
contents: 'write'
packages: 'write'
actions: 'read'
steps:
- name: Authorize Mikroe Actions App
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.MIKROE_ACTIONS }}
private-key: ${{ secrets.MIKROE_ACTIONS_KEY }}

- name: Checkout code
uses: actions/checkout@v4

Expand All @@ -29,17 +40,18 @@ jobs:
run: |
python -u scripts/log_changes.py
- name: Commit and Push Changes
env:
TOKEN: ${{ secrets.ACTIONS_TOKEN }}
- name: Add GitHub Actions credentials
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Commit and Push Changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Updating with new CHANGELOG.md";
git add CHANGELOG.md
git commit -m "Updated main CHANGELOG.md file with latest merged release."
git push https://${TOKEN}:[email protected]/MikroElektronika/mikrosdk_v2.git HEAD:master
git push
else
echo "No changes made to CHANGELOG.md";
fi

0 comments on commit 77b57e8

Please sign in to comment.