diff --git a/.github/workflows/update_dbt_marts_schema_changelog.yml b/.github/workflows/update_dbt_marts_schema_changelog.yml index 80166586..27168b38 100644 --- a/.github/workflows/update_dbt_marts_schema_changelog.yml +++ b/.github/workflows/update_dbt_marts_schema_changelog.yml @@ -39,6 +39,7 @@ jobs: - name: Run Bash Script run: | + set -x cd $GITHUB_WORKSPACE PROJECT=hubble-261722 export PROJECT diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index dff6761e..209f6396 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -1,9 +1,10 @@ name: Update changelog for Source Data on: - pull_request: - branches: - - master + push: + +permissions: + contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} @@ -14,17 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python uses: actions/setup-python@v4 with: python-version: 3.12 - - name: Check Current Branch - run: | - git checkout ${{ github.head_ref }} - - name: Run Bash Script run: | set -x @@ -45,5 +42,7 @@ jobs: 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 }} + git push + else + echo "No changes to commit." fi