Create PRs to Repositories #13
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: Create PRs to Repositories | |
on: | |
workflow_dispatch: | |
jobs: | |
create-pull-request: | |
name: Create pull requests | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: orion-ui | |
steps: | |
- name: Checkout orion | |
uses: actions/checkout@v2 | |
with: | |
repository: PrefectHQ/orion | |
token: ${{ secrets.PAT }} | |
- name: Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Configure git | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Create branch | |
run: git checkout -b "update-vue-compositions" | |
- name: Update dependency | |
run: npm install @prefecthq/vue-compositions@latest --save --save-exact | |
- name: Commit dependency update | |
run: | | |
git add -A | |
git commit -m "Update dependency" | |
- name: Push to remote | |
run: git push --set-upstream origin update-vue-compositions | |
- name: Create PR | |
run: | | |
gh pr create \ | |
--title "Update vue-compositions" \ | |
--body '_automatically created_' \ | |
--base main | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} |