Skip to content

Commit

Permalink
actions: Re-enable pip requirements pipeline
Browse files Browse the repository at this point in the history
Bring back pip-requirements.yml pipeline with limited functions which
fo not require using secrets

Signed-off-by: Jan Gałda <[email protected]>
  • Loading branch information
jangalda-nsc committed Oct 3, 2024
1 parent ab3c57c commit 011ed3a
Showing 1 changed file with 6 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +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'

env:
REACT_EMOTE: 'eyes'
# TODO: UNCOMMENT
# paths:
# - 'scripts/requirements*.txt'

jobs:
check-requirements:
Expand Down Expand Up @@ -40,30 +38,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)
<details>
<summary>requirements-fixed.txt diff</summary>
\`\`\` diff
$GITDIFF
\`\`\`
</details>
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: "[email protected]"
diff_file_absolute_path: ""
script_call: |
OUT_FILE="nrf/scripts/requirements-fixed.txt"
echo "Writing frozen requirements to: $OUT_FILE"
Expand Down

0 comments on commit 011ed3a

Please sign in to comment.