-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ENVs list in Blockscout docs when new release is published (#2339
) * Update ENVs list in Blockscout docs when new release is published Fixes #2324 * try to use another workflow * Update sync-envs-docs.yaml * change github token * try to copy both files * integrate to release workflow * [skip ci] rename files while copying
- Loading branch information
Showing
3 changed files
with
46 additions
and
20 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Sync ENV variables docs | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
name: Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Copy main ENV file to Blockscout Docs repository | ||
uses: dmnemec/copy_file_to_another_repo_action@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.GITHIB_BOT_TOKEN }} | ||
with: | ||
source_file: 'docs/ENVS.md' | ||
destination_repo: 'blockscout/docs' | ||
destination_folder: 'setup/env-variables/frontend-common-envs' | ||
rename: 'envs.md' | ||
destination_branch: 'master' | ||
user_email: 'bot@blockscout.com' | ||
user_name: 'blockscout-bot' | ||
use_rsync: true | ||
|
||
- name: Copy deprecated ENV file to Blockscout Docs repository | ||
uses: dmnemec/copy_file_to_another_repo_action@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.GITHIB_BOT_TOKEN }} | ||
with: | ||
source_file: 'docs/DEPRECATED_ENVS.md' | ||
destination_repo: 'blockscout/docs' | ||
destination_folder: 'setup/env-variables/frontend-common-envs' | ||
rename: 'deprecated-envs.md' | ||
destination_branch: 'master' | ||
user_email: 'bot@blockscout.com' | ||
user_name: 'blockscout-bot' | ||
use_rsync: true |