Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/python_compile_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v4

- name: Install git and uv
run: |
apt-get update && apt-get -y install git
curl -LsSf https://astral.sh/uv/install.sh | sh

- uses: actions/checkout@v4
- name: Load Secrets
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GHP_TOKEN: "op://Data Engineering/GITHUB_TOKENS/de_repo_management"

- name: Compile requirements
run: ./admin/ops/python_compile_requirements.sh --upgrade
Expand All @@ -34,7 +42,7 @@ jobs:
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
assignees: ${{ github.event_name == 'schedule' && 'fvankrieken, damonmcc, alexrichey' || '' }}
branch: compile_python_reqs
token: ${{ secrets.GHP_TOKEN }}
token: ${{ env.GHP_TOKEN }}

create_issue_on_failure:
needs: compile_requirements
Expand All @@ -44,10 +52,17 @@ jobs:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
- name: Load Secrets
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GHP_TOKEN: "op://Data Engineering/GITHUB_TOKENS/de_repo_management"

- name: Create issue on failure
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACTION: ${{ github.workflow }}
BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
Expand Down
Loading
Loading