<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using the Databricks Repos API to bring Repo in top-level production folder to latest version in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/using-the-databricks-repos-api-to-bring-repo-in-top-level/m-p/25158#M17465</link>
    <description>&lt;P&gt;I am having an issue with Github Actions workflow using the Databricks Repos API. We want the API call in the Git Action to bring the Repo in our Databricks Repos Top-level folder to the latest version on a merge into the main branch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Github Actions workflow that we have set up is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;on:
  pull_request:
    types:
      - closed
&amp;nbsp;
jobs:
  if_merged:
    if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: |
          export DATABRICKS_TOKEN=databricks_token_here
          curl PATCH --header "Authorization: Bearer $DATABRICKS_TOKEN" \
          &lt;A href="https://&amp;lt;databricks-instance&amp;gt;/api/2.0/repos/{repo_id}?branch=main" target="test_blank"&gt;https://&amp;lt;databricks-instance&amp;gt;/api/2.0/repos/{repo_id}?branch=main&lt;/A&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Upon merging, the Github Action is successful. But when going back to the Repo in Databricks, the updated files are not there unless we pull in the Databricks Repos UI.&lt;/P&gt;&lt;P&gt;Is there something that I am missing from the Actions workflow?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 17:22:57 GMT</pubDate>
    <dc:creator>george2020</dc:creator>
    <dc:date>2022-03-18T17:22:57Z</dc:date>
    <item>
      <title>Using the Databricks Repos API to bring Repo in top-level production folder to latest version</title>
      <link>https://community.databricks.com/t5/data-engineering/using-the-databricks-repos-api-to-bring-repo-in-top-level/m-p/25158#M17465</link>
      <description>&lt;P&gt;I am having an issue with Github Actions workflow using the Databricks Repos API. We want the API call in the Git Action to bring the Repo in our Databricks Repos Top-level folder to the latest version on a merge into the main branch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Github Actions workflow that we have set up is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;on:
  pull_request:
    types:
      - closed
&amp;nbsp;
jobs:
  if_merged:
    if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: |
          export DATABRICKS_TOKEN=databricks_token_here
          curl PATCH --header "Authorization: Bearer $DATABRICKS_TOKEN" \
          &lt;A href="https://&amp;lt;databricks-instance&amp;gt;/api/2.0/repos/{repo_id}?branch=main" target="test_blank"&gt;https://&amp;lt;databricks-instance&amp;gt;/api/2.0/repos/{repo_id}?branch=main&lt;/A&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Upon merging, the Github Action is successful. But when going back to the Repo in Databricks, the updated files are not there unless we pull in the Databricks Repos UI.&lt;/P&gt;&lt;P&gt;Is there something that I am missing from the Actions workflow?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 17:22:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-the-databricks-repos-api-to-bring-repo-in-top-level/m-p/25158#M17465</guid>
      <dc:creator>george2020</dc:creator>
      <dc:date>2022-03-18T17:22:57Z</dc:date>
    </item>
  </channel>
</rss>

