Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jan 11, 2024
1 parent 25aeb8f commit d87d00a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def agreement_is_different():

# Check if the contributing file is different.
if all(file != CONTRIBUTING_FILE_NAME for file in diff_output.splitlines()):
print(f"{CONTRIBUTING_FILE_NAME} is not different.")
return False

previous_agreement_end_line_index = get_previous_agreement_end_line_index()
Expand Down Expand Up @@ -123,6 +124,7 @@ def agreement_is_different():
except StopIteration:
pass

print("All differences are after the end of the agreement.")
return False


Expand Down Expand Up @@ -168,8 +170,6 @@ def send_emails(auth: str, contributors: Contributors):
contributors: The email addresses to send the email to.
"""

contributors = {"[email protected]"} # TODO: remove

failed_sends = False

for contributor in contributors:
Expand Down
27 changes: 12 additions & 15 deletions .github/workflows/notify-new-contribution-agreement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,17 @@ jobs:
- name: πŸ›« Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # get current and previous commit
fetch-depth: 2 # get current and previous commit

- name: Test
run: echo "test $(git --no-pager diff HEAD~1:CONTRIBUTING.md CONTRIBUTING.md)"

# - name: 🐍 Set up Python ${{ env.PYTHON_VERSION }} Environment
# uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main
# with:
# checkout: 'false'
# python-version: ${{ env.PYTHON_VERSION }}
# working-directory: ${{ env.WORKING_DIR }}
- name: 🐍 Set up Python ${{ env.PYTHON_VERSION }} Environment
uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main
with:
checkout: 'false'
python-version: ${{ env.PYTHON_VERSION }}
working-directory: ${{ env.WORKING_DIR }}

# - name: πŸƒ Run Script
# working-directory: ${{ env.WORKING_DIR }}
# run: pipenv run python .
# env:
# AUTH: ${{ secrets.DOTDIGITAL_API_USER_AUTH }}
- name: πŸƒ Run Script
working-directory: ${{ env.WORKING_DIR }}
run: pipenv run python .
env:
AUTH: ${{ secrets.DOTDIGITAL_API_USER_AUTH }}

0 comments on commit d87d00a

Please sign in to comment.