Skip to content

Commit

Permalink
Fix license updater workflow (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus authored Aug 10, 2023
1 parent e02ee6b commit a579dd0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/update_licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,30 @@ jobs:
with:
python-version: "3.10"

- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Configure poetry
run: poetry config virtualenvs.in-project true

- name: Install dependencies
run: poetry install

- name: Update licenses list
run: |
poetry run python src/poetry/core/spdx/helpers.py
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.POETRY_TOKEN_APP_ID }}
private_key: ${{ secrets.POETRY_TOKEN_APP_KEY }}

- name: Update licenses list
run: |
python src/poetry/core/spdx/helpers.py
- name: Create PR if necessary
uses: peter-evans/create-pull-request@v5
with:
Expand Down

0 comments on commit a579dd0

Please sign in to comment.