From 93531d0433fe2aa8cff19e5c659cf6f9358f3606 Mon Sep 17 00:00:00 2001 From: NordicBuilder Date: Thu, 21 Sep 2023 11:24:01 +0200 Subject: [PATCH] next --- .github/workflows/pip-requirements.yml | 71 ++------------------------ 1 file changed, 4 insertions(+), 67 deletions(-) diff --git a/.github/workflows/pip-requirements.yml b/.github/workflows/pip-requirements.yml index 12e6443a8b..56ffdab9ee 100644 --- a/.github/workflows/pip-requirements.yml +++ b/.github/workflows/pip-requirements.yml @@ -16,6 +16,7 @@ jobs: runs-on: ubuntu-20.04 steps: + - uses: actions/checkout@v3 - name: Checkout uses: actions/checkout@v3 with: @@ -28,77 +29,13 @@ jobs: run: | echo "pr_repo_owner=${{ github.event.pull_request.head.repo.owner.login }}" >> $GITHUB_OUTPUT - # - name: Get python version - # id: pyv - # run: | - # sudo snap install --channel=v4 yq - # PYTHON_VERSION=$(yq '.python.version' ./ncs/nrf/scripts/tools-versions-linux.yml) - # echo "python_version=$PYTHON_VERSION" >> $GITHUB_OUTPUT - - # - name: Setup python version - # uses: actions/setup-python@v4 - # with: - # python-version: '${{ steps.pyv.outputs.python_version }}' - - # - name: Setup environment - # working-directory: ncs - # run: | - # pip3 install --user -U setuptools wheel pip virtualenv virtualenvwrapper - # pip3 install -r nrf/scripts/requirements-base.txt - # west init -l nrf - # west update mcuboot zephyr - - # - name: Generate new requirements-fixed.txt - # working-directory: ncs - # run: nrf/scripts/compile-requirements.sh requirements-fixed.txt - - # - name: Store requirements-fixed - # uses: actions/upload-artifact@v3 - # with: - # name: requirements-fixed - # path: ncs/requirements-fixed.txt - - # - name: Compare requirements-fixed - # id: diff - # run: | - # NEW=ncs/requirements-fixed.txt - # OLD=ncs/nrf/scripts/requirements-fixed.txt - # DIFF_OUTPUT=$(diff -y $NEW $OLD) || true # Add || true to avoid step failure - # if [[ -n "$DIFF_OUTPUT" ]]; then - # echo "Differences found! Making autocommit" - # echo "difference=true" >> $GITHUB_OUTPUT - # echo '${{ steps.diff.outputs.difference }}' - # else - # echo "No differences found." - # echo "difference=false" >> $GITHUB_OUTPUT - # fi - - # - name: Commit and push changes - # if: ${{ steps.diff.outputs.difference == 'true' }} - # working-directory: ncs/nrf - # run: | - # mv ../requirements-fixed.txt ./scripts/requirements-fixed.txt - # git config user.email "NordicBuilder@github.com" - # git config user.name "NordicBuilder" - # git add ./scripts/requirements-fixed.txt - # git commit -F- < - # EOF - # git remote set-url origin https://NordicBuilder:${{ secrets.NCS_GITHUB_TOKEN }}@github.com/${{ steps.pr-origin.outputs.pr_repo_owner }}/sdk-nrf-testing.git - # git push origin HEAD:${{ github.head_ref }} - - name: Commit and push changes - if: ${{ 'true' == 'true' }} + uses: actions/checkout@v3 working-directory: ncs/nrf run: | touch test - git config user.email "NordicBuilder@github.com" - git config user.name "NordicBuilder" + git config --global user.email "NordicBuilder@github.com" + git config --global user.name "NordicBuilder" git add ./test git commit -F- <