From b077afbefe4649461cd17ffb132cdf9392aee0fb Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 22 Aug 2024 20:20:46 +0200 Subject: [PATCH] [FIXUP] Print fork infos --- .github/workflows/bumpServiceVersions.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/bumpServiceVersions.yml b/.github/workflows/bumpServiceVersions.yml index 2ee4f626f7f..555efc80ec1 100644 --- a/.github/workflows/bumpServiceVersions.yml +++ b/.github/workflows/bumpServiceVersions.yml @@ -34,6 +34,28 @@ jobs: - uses: actions/checkout@v4 - run: | git config --list + - run: | + echo 'full_name: ${{ github.event.pull_request.head.repo.full_name }}' + echo 'head-ref1: ${{ github.event.pull_request.head.ref }}' + echo 'head-ref2: ${{ github.head_ref }}' + git config --global user.email 'eclipse-releng-bot@eclipse.org' + git config --global user.name 'Eclipse Releng Bot' + git checkout ${{ github.sha }} + echo 'Hello World' > myfile.txt + git add --all * + git status + git commit -m "Bump version(s) for 4.34 stream" + git status + - name: Push version bump commit + if: ${{ github.event_name == 'pull_request' }} + run: | + git remote add 'fork' https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git + git remote -v + git push 'fork' 'HEAD:refs/heads/${{ github.event.pull_request.head.ref }}' + + +#TODO: make version dynamic and mail and bot name configurable?! + # See # https://github.com/actions/toolkit