Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/workflows/build-num-increment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,19 @@ jobs:
test:
name: Increment value test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out source code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
uses: actions/checkout@v4
- name: Increment value
working-directory: v3
run: ./increment_build_num.sh
- name: Commit files
- name: Commit and push
# Use the official github-actions[bot] account (ID 41898282) for automated commits.
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
run: |
git config --local user.email ${{ secrets.USER_EMAIL }}
git config --local user.name ${{ secrets.USER_NAME }}
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Increment the build number"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
git push