Skip to content

Commit

Permalink
refact: trying without docker
Browse files Browse the repository at this point in the history
  • Loading branch information
kopardev committed Jul 20, 2024
1 parent 1a0e8d7 commit 5996647
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/auto_update_org_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,26 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Pull Docker

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install dependencies
run: |
docker pull nciccbr/make_readme:latest
- name: Run script in docker test1
python -m pip install --upgrade pip
pip install -r ./assets/make_readme/requirements.txt
- name: run test 1
env:
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
run: |
docker run -e GITHUB_TOKEN=$GITHUB_TOKEN -v ${{ github.workspace }}:/workspace -w /workspace nciccbr/make_readme:latest bash ./assets/make_readme/test1.sh
- name: Run script in docker test2
env:
GH_TOKEN: ${{ github.token }}
run: |
docker run -e GITHUB_TOKEN=$GITHUB_TOKEN -v ${{ github.workspace }}:/workspace -w /workspace nciccbr/make_readme:latest bash ./assets/make_readme/test2.sh
# - name: Run script in docker
# env:
# GH_TOKEN: ${{ github.token }}
# run: |
python ./assets/make_readme/get_recent_releases_table.py
# docker run -e GITHUB_TOKEN=$GITHUB_TOKEN -v ${{ github.workspace }}:/workspace -w /workspace nciccbr/make_readme:latest bash ./assets/make_readme/make_readme.sh
- name: verify output
run: |
cat profile/README.md
# - name: verify output
# run: |
# cat profile/README.md
# - name: Commit changes
# uses: stefanzweifel/git-auto-commit-action@v5
# env:
Expand Down
4 changes: 4 additions & 0 deletions assets/make_readme/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pandas
requests
python-dateutil
tabulate

0 comments on commit 5996647

Please sign in to comment.