adjust deploy file to install node #7
Workflow file for this run
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: Trigger Deployment Workflow in CareObra | |
on: | |
push: | |
branches: | |
- feature/LADO-1108-GenerateAutomaticChange | |
jobs: | |
trigger-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' #maybe change this to make it dynamic later | |
- name: Install dependancies | |
run: npm install | |
- name: Trigger deployment in another repo | |
uses: ./.github/actions/repo-dispatch | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
target-repository: UKHSA-Internal/hpod-ukhsa-generate-webform-url-citizen # Replace target repository's name | |
event-type: trigger-deployment # This is a custom event type we listen for in deployment.yml | |
clientPayload: '{"ref": "main"}' |