Skip to content

Commit

Permalink
push to branch
Browse files Browse the repository at this point in the history
push to branch

push to branch

push to branch

push to branch

push to branch
  • Loading branch information
amishas157 committed Nov 4, 2024
1 parent 100f039 commit 655deaa
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/update_source_data_schema_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- master
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }}
Expand All @@ -19,11 +21,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Check Current Branch
run: |
git checkout ${{ github.head_ref }}
python-version: 3.8

- name: Run Bash Script
run: |
Expand All @@ -38,12 +36,22 @@ jobs:
rm -rf $OLD_SCHEMAS_DIR
rm -rf repo_master_copy
- name: Commit and Push Changes
- name: Commit changes
id: commit_changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add changelog/source_data.md
if git commit -m "Update changelog for Source data"; then
echo "Changes committed."
git push origin ${{ github.head_ref }}
echo "changes_committed=true" >> $GITHUB_OUTPUT
else
echo "No changes to commit."
echo "changes_committed=false" >> $GITHUB_OUTPUT
fi
- name: Push branch
if: steps.commit_changes.outputs.changes_committed == 'true'
run: |
git push

0 comments on commit 655deaa

Please sign in to comment.