Skip to content

Commit

Permalink
update commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
guyrenny committed May 23, 2024
1 parent 3be70b0 commit 35201fd
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/Synchronizing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,24 +137,17 @@ jobs:
# with:
# name: change_file_list

- name: Commit and push chage files
- name: Commit and push change files
run: |
echo "the file"
ls | grep change_file_list
echo "end of file"
for file in change_file_list_*; do
line="${file#change_file_list_}"
echo "The integration is:"
echo $line
if [[ -d "aws-integrations/lambda-integrations/$line" ]]; then
echo " in the if"
mv template-readme-directory-${line}/${line}_README aws-integrations/lambda-integrations/$line/README.md
mv template-readme-directory-${line}/${line}_template.yaml aws-integrations/lambda-integrations/$line/template.yaml
if [ -f "template-readme-directory-${line}/${line}_CHANGELOG.md" ]; then
mv template-readme-directory-${line}/${line}_CHANGELOG.md aws-integrations/lambda-integrations/$line/CHANGELOG.md
fi
else
echo "in the else condition"
mkdir aws-integrations/lambda-integrations/$line
mv template-readme-directory-${line}/${line}_README aws-integrations/lambda-integrations/$line/README.md
mv template-readme-directory-${line}/${line}_template.yaml aws-integrations/lambda-integrations/$line/template.yaml
Expand All @@ -170,15 +163,10 @@ jobs:
git checkout master
git pull
git add .
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "commit_message=sync-from-serverless" >> $GITHUB_ENV
else
echo "commit_message=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
fi
- uses: planetscale/ghcommit-action@v0.1.19
with:
commit_message: ${{ env.commit_message }}
commit_message: "${{ github.event.pull_request.title }}"
repo: coralogix/cloudformation-coralogix-aws
branch: master
file_pattern: '*.yaml *.md'
Expand Down

0 comments on commit 35201fd

Please sign in to comment.