From feb71bf6f78f22a4838b323422ea68b9b5be62f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ga=C5=82da?= Date: Thu, 3 Oct 2024 15:17:42 +0200 Subject: [PATCH] actions: Re-enable pip requirements pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bring back pip-requirements.yml pipeline with limited functions which fo not require using secrets Signed-off-by: Jan Gałda --- .github/workflows/pip-requirements.yml | 32 +++++--------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/.github/workflows/pip-requirements.yml b/.github/workflows/pip-requirements.yml index 8b3892e930b..290c692774b 100644 --- a/.github/workflows/pip-requirements.yml +++ b/.github/workflows/pip-requirements.yml @@ -1,13 +1,14 @@ name: Validate pip requirements-fixed.txt on: - pull_request_target: + pull_request: types: [opened, synchronize, reopened] branches: - main - 'v*-branch' - paths: - - 'scripts/requirements*.txt' +# TODO: UNCOMMENT +# paths: +# - 'scripts/requirements*.txt' env: REACT_EMOTE: 'eyes' @@ -40,30 +41,9 @@ jobs: pip3 install --user -U setuptools wheel pip virtualenv virtualenvwrapper - name: Execute script diff action - uses: nrfconnect/action-script-diff@v0.2 + uses: nrfconnect/action-script-diff@simple-and-secure with: - github-token: ${{ secrets.NCS_GITHUB_TOKEN }} - message_diff: | - This pr introduces changes to requirements files. - The compiled requirements-fixed.txt has changed. - To automatically add the changed file to this pr react with the :$REACT_EMOTE: emote to this comment and re-run the check. - [Check Run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) -
- requirements-fixed.txt diff - - \`\`\` diff - $GITDIFF - \`\`\` -
- message_success: | - The changes to the 'requirements-fixed.txt' have been added to this PR. - All further changes to any of the requirements file will automatically be applied as long an :$REACT_EMOTE: is present. - git_diff_root: ncs/nrf - diff_path: scripts - diff_file: requirements-fixed.txt - reaction_emote: "${{ env.REACT_EMOTE }}" - git_user_name: "Nordic Builder" - git_user_email: "pylon@nordicsemi.no" + diff_file_absolut_path: "" script_call: | OUT_FILE="nrf/scripts/requirements-fixed.txt" echo "Writing frozen requirements to: $OUT_FILE"