From 3c4e122675956d1cd20ea363a399b78d804f469f Mon Sep 17 00:00:00 2001 From: Brandon Parker Date: Fri, 27 May 2022 10:35:38 -0700 Subject: [PATCH] Reference workflow in SFDO-Tooling/.github (#3217) Co-authored-by: James Estevez --- .github/workflows/update_dependencies.yml | 38 +++-------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/.github/workflows/update_dependencies.yml b/.github/workflows/update_dependencies.yml index 2f7ef8802b..5d31805144 100644 --- a/.github/workflows/update_dependencies.yml +++ b/.github/workflows/update_dependencies.yml @@ -1,38 +1,10 @@ -name: Update dependencies +name: Update Python Dependencies on: workflow_dispatch: jobs: - update_dependencies: - runs-on: ubuntu-latest - steps: - - name: "Checkout" - uses: actions/checkout@v3 - with: - ref: main - fetch-depth: 0 - - name: Set up Python 3.8 - id: py - uses: actions/setup-python@v2 - with: - python-version: 3.8 - cache: pip - cache-dependency-path: "requirements/*.txt" - - name: Update dependencies - run: | - pip install pip-tools - make update-deps - - name: Commit changes and open PR - run: | - export WEEK="W$(date +%V)" - git config user.name github-actions - git config user.email github-actions@github.com - git switch -c "dependency-updates-$WEEK" - git add requirements/*.txt - git commit -m "$WEEK dependency updates (automated)" - git push origin "dependency-updates-$WEEK" - - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr create --fill --label 'auto-pr,dependencies' + update_python_dependencies: + uses: SFDO-Tooling/.github/.github/workflows/update_python_dependencies.yml + with: + python-version: 3.8