Skip to content

Updates

Updates #1

Workflow file for this run

name: Sync Skills to Skills Repository
on:
push:
branches:
- main
paths:
- 'skills/**'
workflow_dispatch:
jobs:
sync-skills:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v4
with:
path: source
- name: Checkout skills repository
uses: actions/checkout@v4
with:
repository: shinyorg/skills
token: ${{ secrets.SKILLS_REPO_TOKEN }}
path: skills-repo
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Sync skills directory
run: |
if [ -d "source/skills/shiny-firebase" ]; then
rm -rf skills-repo/skills/shiny-firebase
mkdir -p skills-repo/skills
cp -r source/skills/shiny-firebase skills-repo/skills/
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.SKILLS_REPO_TOKEN }}
path: skills-repo
commit-message: "Update shiny-firebase skill from Firebase repository"
title: "Update shiny-firebase skill"
body: |
This PR updates the shiny-firebase skill from the [Firebase repository](https://github.com/shinyorg/firebase).
**Source commit:** ${{ github.sha }}
**Triggered by:** @${{ github.actor }}
---
*This PR was automatically created by the [sync-skills workflow](https://github.com/shinyorg/firebase/actions/workflows/sync-skills.yml).*
branch: update-shiny-firebase-skill
delete-branch: true
labels: |
automated
skills-update