Skip to content

cysec-lab/pushtopub_public

Repository files navigation

PrivateレポジトリにPushするとPublicレポジトリに一部がコピーされ、GitHub PagesにデプロイするPoC

↑のとおりです。

image

private action file

pushtopub_private/.github/workflows/action.yaml

name: Action Trigger
on:
  push:
    branches:
      - main

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: convictional/[email protected]
        with:
          owner: cysec-lab    # change this
          repo: pushtopub_public # change this
          github_token: ${{ secrets.ORG_GITHUB_PAT }}
          workflow_file_name: deploy.yaml
          propagate_failure: true