From f66ff61d4eb1db015c59bfb51e4aee253aa23cd5 Mon Sep 17 00:00:00 2001 From: Luis Mayta Date: Sun, 27 Feb 2022 22:53:07 -0500 Subject: [PATCH] ci: upgrade github actions confluence --- .github/workflows/confluence.yml | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/confluence.yml diff --git a/.github/workflows/confluence.yml b/.github/workflows/confluence.yml new file mode 100644 index 0000000..dc9bab8 --- /dev/null +++ b/.github/workflows/confluence.yml @@ -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/changed-files@v17.1 + with: + files: | + *.md + files_ignore: | + *.tpl.md + + - name: Sync confluence + uses: hadenlabs/action-confluence-sync@0.1.0 + 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 }}