diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 3251bd247b7..61dc5de1e76 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -102,6 +102,9 @@ jobs: branch_name="new_branch_$timestamp" git checkout -b $branch_name + # Echo the branch name so it can be used in later steps + echo "::set-output name=branch_name::$branch_name" + # Replace the content inside js-storefront/spartacusstore with the content from ./../../spartacus-${{ github.event.inputs.version }}/apps/spartacusstore rm -rf js-storefront/spartacusstore/* cp -r ./../../spartacus-${{ github.event.inputs.version }}/apps/spartacusstore/* js-storefront/spartacusstore/ @@ -116,6 +119,7 @@ jobs: git push -u https://${{secrets.GH_TEMPORARY_TOKEN}}@github.com/SAP-samples/cloud-commerce-sample-setup.git - name: Create Pull Request run: | + BRANCH_NAME=${{ steps.commit_changes.outputs.branch_name }} curl \ -X POST \ -H "Authorization: token ${{ secrets.GH_TEMPORARY_TOKEN }}" \