Setup repository #6
This file contains 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: Setup repository | |
on: workflow_dispatch | |
permissions: | |
pages: read | |
contents: write | |
pull-requests: write | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: Setup Pages | |
id: configure-pages | |
uses: actions/configure-pages@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
npm ci | |
npm run setup-repository --repository=${{ github.repository }} --pages_basepath=${{ steps.configure-pages.outputs.base_path }} --pages_baseurl=${{ steps.configure-pages.outputs.base_url }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: 'chore: setup repository' | |
title: 'chore: setup repository' | |
body: | | |
This is an automated pull request to setup the repository. | |
It will be automatically closed if no commits are made to this branch within 30 days. | |
branch: setup-repository | |
branch-suffix: timestamp | |
delete-branch: true |