-
Notifications
You must be signed in to change notification settings - Fork 66
40 lines (40 loc) · 1.13 KB
/
publish-workflow-ui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Publish Workflow UI
on:
workflow_dispatch:
push:
branches:
- main
paths:
- site/plugins.json
pull_request:
types: [opened, synchronize, reopened]
branches-ignore:
- 'publish_workflow_ui_**'
jobs:
sync-to-repo:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Using Node.js
uses: actions/setup-node@v3
with:
node-version: '*'
cache: 'npm'
check-latest: true
- name: Install dependencies
run: npm install
- name: Setup git config
run: |
git config user.name 'token-generator-app[bot]'
git config user.email '82042599+token-generator-app[bot]@users.noreply.github.com'
- name: Generate GitHub token
uses: navikt/[email protected]
id: get-token
with:
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
app-id: ${{ secrets.TOKENS_APP_ID }}
- name: Upload Workflow UI files
env:
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}
run: bin/publish_workflow_ui.sh