-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pass modified files to the Action (#6)
The Python script now reads the list of modified files as a parameter, instead of calling git diff itself. This fixes the problem where the Docker container is built before the repository is cloned.
- Loading branch information
1 parent
ffb6467
commit d9c1e33
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,16 @@ two commits and get a list of modified files. | |
with: | ||
fetch-depth: 2 | ||
- name: Get modified files | ||
run: echo "MODIFIED_FILES=`git diff HEAD^ --name-only | xargs`" >> $GITHUB_ENV | ||
- name: Wiki Sync | ||
uses: talkiq/confluence-docs-sync@v1 | ||
uses: talkiq/confluence-wiki-sync@v1 | ||
with: | ||
wiki-base-url: https://example.org | ||
user: [email protected] | ||
token: ${{ secrets.TOKEN }} | ||
modified-files: ${{ env.MODIFIED_FILES }} | ||
space-name: CoolSpace | ||
root-page-title: Root page | ||
|
@@ -57,7 +61,7 @@ space-separated list: | |
.. code-block:: yaml | ||
- name: Wiki Sync | ||
uses: talkiq/confluence-docs-sync@v1 | ||
uses: talkiq/confluence-wiki-sync@v1 | ||
with: | ||
ignored_folders: 'foo/ bar/baz/' | ||
[...] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters