-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.1 KB
/
confluence.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
41
42
43
44
45
name: confluence
on:
workflow_run:
workflows:
- lint-code
types:
- completed
branches:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+"
# https://semver.org/ proper release tags, more or less
- "v[0-9]+.[0-9]+.[0-9]+"
# prerelease tags, more or less
- "v[0-9]+.[0-9]+.[0-9]+-*"
jobs:
confluence:
runs-on: ubuntu-20.04
steps:
- name: Check out a copy of the repo
if: ${{ !env.ACT }}
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v26
with:
files: |
docs/*.md
files_ignore: |
*.tpl.md
^.terraform
- name: Sync confluence
uses: hadenlabs/[email protected]
with:
files: "${{ steps.changed-files.outputs.all_changed_files }}"
confluence_url: ${{ secrets.CONFLUENCE_BASE_URL }}
confluence_username: ${{ secrets.CONFLUENCE_USER }}
confluence_token: ${{ secrets.CONFLUENCE_ACCESS_TOKEN }}