mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-13 20:06:24 +00:00
* Set explicit workflow permissions * Should be a no-op since we're using restricted GITHUB_TOKENs by default
28 lines
862 B
YAML
28 lines
862 B
YAML
name: LangChain People
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 14 1 * *"
|
|
push:
|
|
branches: [jacob/people]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
langchain-people:
|
|
if: github.repository_owner == 'langchain-ai' || github.event_name != 'schedule'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Dump GitHub context
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
run: echo "$GITHUB_CONTEXT"
|
|
- uses: actions/checkout@v4
|
|
# Ref: https://github.com/actions/runner/issues/2033
|
|
- name: Fix git safe.directory in container
|
|
run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig
|
|
- uses: ./.github/actions/people
|
|
with:
|
|
token: ${{ secrets.LANGCHAIN_PEOPLE_GITHUB_TOKEN }}
|