Skip to content

Commit

Permalink
Merge pull request #13 from Artsdatabanken/triggerNin
Browse files Browse the repository at this point in the history
trigger nin etter at filer er lastet til kommune
  • Loading branch information
Myrdrahl authored Aug 29, 2023
2 parents b658af4 + 3bf2ddd commit 4d4f206
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: build and publish kommune

on:
push:
branches: [ master ]
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: "18.x"
- run: npm install
- run: npm update
- run: npm run download
Expand All @@ -23,10 +23,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
path: './destinationRepo'
path: "./destinationRepo"
token: ${{secrets.PUSH_TOKEN}}
- name: Run deployment script
run: ./.github/workflows/deploy.sh
run: ./.github/workflows/deploy.sh
shell: bash
- name: Create release
uses: ncipollo/release-action@v1
Expand All @@ -48,4 +48,15 @@ jobs:
git push https://$USERNAME:$REPO_KEY@github.com/artsdatabanken/kommune.git
env:
REPO_KEY: ${{secrets.PUSH_TOKEN}}
USERNAME: github-actions[bot]
USERNAME: github-actions[bot]
- uses: actions/github-script@v6
name: Fyrer NiN
with:
github-token: ${{ secrets.PAT }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'artsdatabanken',
repo: 'nin-data-lastejobb',
workflow_id: 'deploy.yml',
ref: 'master'
})

0 comments on commit 4d4f206

Please sign in to comment.