Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minor issues with workflow #55

Merged
merged 1 commit into from
Jul 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/push-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
CONFIG_FILENAME: allconfig.yml
- name: Import GPG key
if: (${{env.copyEnable}} == true && ${{env.gpgEnable}})
if: ${{env.copyEnable}} == true && ${{env.gpgEnable}}
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v2
env:
Expand All @@ -74,18 +74,18 @@ jobs:
with:
commit_message: ${{env.copyfilesCommitMessage}}
branch: ${{env.copyfilesBranch}}-${{github.run_id}}
commit_user_name: ${{env.changelogName}}
commit_user_email: ${{env.changelogEmail}}
commit_user_name: ${{env.commitName}}
commit_user_email: ${{env.commitEmail}}
commit_options: ${{env.copyfilesCommit_options}}
push_options: ${{env.copyfilesPush_options}}
- name: Delete branch
uses: dawidd6/action-delete-branch@v3
if: ( ${{steps.commit.outputs.changes_detected}} == false && ${{env.copyEnable}} == true )
if: ${{steps.commit.outputs.changes_detected}} == false && ${{env.copyEnable}} == true
with:
github_token: ${{github.token}}
branches: ${{env.copyfilesBranch}}-${{github.run_id}}
- name: Sync workflows
if: ( ${{steps.commit.outputs.changes_detected}} == true && ${{env.copyEnable}} == true )
if: ${{steps.commit.outputs.changes_detected}} == true && ${{env.copyEnable}} == true
uses: repo-sync/pull-request@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -108,18 +108,18 @@ jobs:
CONFIG_FILENAME: allconfig.yml
- name: Checkout Repo
uses: actions/checkout@v2
if: ( ${{env.wikiEnable}} == true && ${{env.docsToWiki}} == true )
if: ${{env.wikiEnable}} == true && ${{env.docsToWiki}} == true
with:
ref: ${{env.copyfilesBranch}}-${{github.run_id}}
- name: Sync docs to wiki
if: ( ${{env.wikiEnable}} == true && ${{env.docsToWiki}} == true )
if: ${{env.wikiEnable}} == true && ${{env.docsToWiki}} == true
uses: newrelic/wiki-sync-action@master
with:
source: ${{env.docsToWikiSource}}
destination: ${{env.docsToWikiDestination}}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Copy to ${{github.repository}}
if: ( ${{env.wikiEnable}} == true && ${{env.docsToRepo}} == true )
if: ${{env.wikiEnable}} == true && ${{env.docsToRepo}} == true
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.ACCESS_TOKEN }}
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{env.wikiToDocsBranch}}-${{github.run_id}}
- name: pull-request
if: ( ${{env.wikiEnable}} == true && ${{env.wikiToDocs}} == true )
if: ${{env.wikiEnable}} == true && ${{env.wikiToDocs}} == true
uses: repo-sync/pull-request@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -169,7 +169,7 @@ jobs:
pr_body: ${{env.wikiToDocsPRbody}}
pr_label: ${{env.wikiToDocsPRlabel}}
- name: Copy to ${{github.repository}}
if: ( ${{env.wikiEnable}} == true && ${{env.wikiToRepo}} == true )
if: ${{env.wikiEnable}} == true && ${{env.wikiToRepo}} == true
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.ACCESS_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
with:
CONFIG_FILENAME: allconfig.yml
- name: Import GPG key
if: (${{env.changelog}} == true && ${{env.gpgEnable}})
if: ${{env.changelog}} == true && ${{env.gpgEnable}
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v2
env:
Expand Down Expand Up @@ -115,19 +115,19 @@ jobs:
with:
commit_message: ${{env.changelogCommitMessage}}
branch: ${{env.changelogBranch}}-${{github.run_id}}
commit_user_name: ${{env.changelogName}}
commit_user_email: ${{env.changelogEmail}}
commit_user_name: ${{env.commitName}}
commit_user_email: ${{env.commitEmail}}
commit_options: ${{env.changelogCommit_options}}
push_options: ${{env.changelogPush_options}}
- name: Delete branch
uses: dawidd6/action-delete-branch@v3
if: ( ${{steps.commit.outputs.changes_detected}} == false && ${{env.changelog}} == true )
if: ${{steps.commit.outputs.changes_detected}} == false && ${{env.changelog}} == true
with:
github_token: ${{github.token}}
branches: ${{env.changelogBranch}}-${{github.run_id}}
- name: pull-request
uses: repo-sync/pull-request@v2
if: ( ${{steps.commit.outputs.changes_detected}} == true && ${{env.changelog}} == true )
if: ${{steps.commit.outputs.changes_detected}} == true && ${{env.changelog}} == true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: ${{env.changelogBranch}}-${{github.run_id}}
Expand Down