Update People Data #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'π₯ LangChain People' | |
run-name: 'Update People Data' | |
# This workflow updates the LangChain People data by fetching the latest information from the LangChain Git | |
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 }} |