Generate Tags #34
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: Generate Tags | |
on: | |
schedule: | |
# Runs every day | |
- cron: '0 5 * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
if: github.repository == 'scraly/developers-conferences-agenda' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
cache: npm | |
cache-dependency-path: '**/package-lock.json' | |
- working-directory: page | |
run: npm install -D | |
- name: Generate Tags | |
working-directory: tools | |
env: | |
OVH_AI_ENDPOINTS_ACCESS_TOKEN: ${{ secrets.OVH_AI_ENDPOINTS_ACCESS_TOKEN }} | |
OVH_AI_ENDPOINTS_MODEL_URL: ${{ vars.OVH_AI_ENDPOINTS_MODEL_URL }} | |
OVH_AI_ENDPOINTS_MODEL_NAME: ${{ vars.OVH_AI_ENDPOINTS_MODEL_NAME }} | |
run: | | |
npm install -D | |
node mdValidator.js | |
node mdParser.js | |
node generateAITagsv2.js | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.PAT }} | |
commit-message: generate new tags | |
title: Generate Tags | |
base: main | |
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: generate-tags | |
delete-branch: true | |
body: | | |
This PR was generated via GH action | |
- Generates tags | |
draft: false |