Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 909 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 909 Bytes

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