Skip to content

Commit

Permalink
ci: normalize names
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted committed Mar 25, 2024
1 parent e11f3f4 commit f490b80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
app-id: ${{ secrets.POETRY_TOKEN_APP_ID }}
private-key: ${{ secrets.POETRY_TOKEN_APP_KEY }}
- name: cherry-pick
- name: backport.sh
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Documentation Preview"
name: Documentation Preview

on:
pull_request:
Expand Down Expand Up @@ -28,13 +28,11 @@ jobs:
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'impact/docs'))
|| (github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- name: Checkout Website Source
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: python-poetry/website

- name: Checkout Poetry Source
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: poetry
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -51,17 +49,15 @@ jobs:

- run: poetry install --sync --no-root --only main

- name: Build Website
run: |
- run: |
# Rebuild the docs files from the PR checkout.
poetry run python bin/website build --local ./poetry
# Build website assets (CSS/JS).
npm ci && npm run prod
# Build the static website.
hugo -v --minify
- name: Deploy Website
uses: amondnet/vercel-action@v25
- uses: amondnet/vercel-action@v25
id: vercel-action
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/lock-threads.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: 'Lock Threads'
name: Lock Threads

on:
schedule:
# at the end of everyday
- cron: '0 0 * * *'
- cron: '0 0 * * *' # every day at midnight
workflow_dispatch:

permissions:
Expand All @@ -15,7 +14,7 @@ concurrency:
group: lock-threads

jobs:
action:
lock-threads:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
Expand Down

0 comments on commit f490b80

Please sign in to comment.