Skip to content

Commit

Permalink
Testing modified action
Browse files Browse the repository at this point in the history
  • Loading branch information
moe-ad committed Nov 12, 2024
1 parent 62f59ab commit be89126
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/hello-world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit be89126

Please sign in to comment.