diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index f848ce6..956297a 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -208,19 +208,15 @@ jobs: python-version: ${{ env.MAIN_PYTHON_VERSION }} - name: Install Python dependencies - shell: bash run: | python -m pip install --upgrade pip python -m pip install requests - - name: Checkout repository main branch + - name: Checkout repository current branch uses: actions/checkout@v4 - with: - ref: main - name: Copy tools folder to /tmp and run sitemap script working-directory: /tmp - shell: bash run: | cp -r /home/runner/work/ci_cd/ci_cd/tools/ . python ./tools/catsitemap.py @@ -240,10 +236,8 @@ jobs: #sed -i 's/version\/stable/version\/dev/g' sitemap.xml - name: Move sitemaps/ to test-branch root - shell: bash run: | - rm -r /home/runner/work/ci_cd/ci_cd/sitemaps/ - mv /tmp/sitemaps/ /home/runner/work/ci_cd/ci_cd/ + rm -rf sitemaps/ && mv /tmp/sitemaps/ . - name: "Commit changes" uses: EndBug/add-and-commit@v9