-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install change log for automated updates (#140)
* Install changelog for automated updates Signed-off-by: Merit <[email protected]> * Add auth to other actions Signed-off-by: Merit <[email protected]> * Remove angular temporarily until it is no longer a manual release Signed-off-by: Merit <[email protected]> --------- Signed-off-by: Merit <[email protected]>
- Loading branch information
1 parent
25a89ef
commit 8106bfa
Showing
7 changed files
with
114 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Create a changelog update | ||
|
||
on: | ||
push: | ||
tags: | ||
- '@**' | ||
- '**' | ||
|
||
jobs: | ||
changelog: | ||
name: Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Authenticate with private NPM package | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Set tag variable | ||
run: | | ||
TAG_NAME=${GITHUB_REF#refs/tags/} | ||
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||
- name: Set variables from cl-config.yml | ||
run: | | ||
destinationRepo=$(yq e '.destinationRepo' cl-config.yml) | ||
destinationDirectory=$(yq e '.destinationDirectory' cl-config.yml) | ||
echo "DESTINATION_REPO=${destinationRepo}" >> $GITHUB_ENV | ||
echo "DESTINATION_DIRECTORY=${destinationDirectory}" >> $GITHUB_ENV | ||
|
||
- name: Create a changelog update | ||
run: npx changelog generate ${{ env.TAG_NAME }} | ||
env: | ||
CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }} | ||
|
||
- name: Get changelog update file name | ||
run: | | ||
FILE_NAME=$(ls temp) | ||
echo "FILE_NAME=$FILE_NAME" >> $GITHUB_ENV | ||
- name: Create branch in guides repo with changelog update | ||
uses: dmnemec/copy_file_to_another_repo_action@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} | ||
with: | ||
source_file: temp/${{ env.FILE_NAME}} | ||
destination_repo: ${{ env.DESTINATION_REPO }} | ||
destination_folder: changelog/src/${{ env.DESTINATION_DIRECTORY }} | ||
destination_branch_create: changelog/${{ env.TAG_NAME }} | ||
user_email: ${{ github.actor }} | ||
user_name: github-actions[bot] | ||
commit_message: "Updating the changelog for ${{ env.TAG_NAME }}" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
sourceDirectory: 'packages' | ||
destinationRepo: 'flatfilers/guides' | ||
destinationDirectory: 'libraries' | ||
packages: | ||
- name: 'flatfile' | ||
dir: cli | ||
type: core | ||
- name: '@flatfile/javascript' | ||
dir: wrappers | ||
type: wrappers | ||
- name: '@flatfile/listener' | ||
dir: listener | ||
type: listener | ||
- name: '@flatfile/react' | ||
dir: react | ||
type: wrappers | ||
- name: '@flatfile/vue' | ||
dir: vue | ||
type: wrappers |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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