Skip to content

Commit

Permalink
ci: upgrade github actions confluence
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Feb 28, 2022
1 parent 317d75d commit df28d82
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/confluence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: confluence

on:
workflow_run:
workflows:
- lint-code
types:
- completed
branches:
- develop
- 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@v2
with:
fetch-depth: 0

- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
files: |
*.md
files_ignore: |
*.tpl.md
- 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 }}

0 comments on commit df28d82

Please sign in to comment.