Github Actions 5 years ago
parent
commit
aec860a853
  1. 3
      .github/workflows/DINAR-pr.yml
  2. 1
      .github/workflows/DINAR.yml

3
.github/workflows/DINAR-pr.yml

@ -144,6 +144,7 @@ jobs:
- name: Configure docker
run: |
bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }}
echo "::set-env name=PR_FILES::../../REPO"
- name: Install python tools
run: |
pip install plumbum PyGithub pyyaml
@ -158,6 +159,7 @@ jobs:
ODOO_BASE_MODULES=$(docker inspect \
--format '{{ index .Config.Labels "dinar.odoo.modules"}}' \
dinar_odoo_1)
echo "ODOO_BASE_MODULES=$ODOO_BASE_MODULES"
# sets environment variables that available in next steps via $ {{ env.PR_... }} notation
cd REPO
@ -238,6 +240,7 @@ jobs:
- name: Configure Docker
run: |
bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }}
echo "::set-env name=PR_FILES::../../REPO"
- name: Analyze PR
run: |
# sets environment variables that available in next steps via $ {{ env.PR_... }} notation

1
.github/workflows/DINAR.yml

@ -63,7 +63,6 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}
buildargs: ODOO_VERSION,AGGREGATE,PIP_INSTALL_ODOO,CLEAN,COMPILE,LOCAL_CUSTOM_DIR
workdir: REPO/.DINAR/
cache: ${{ github.event_name != 'schedule' }}
- name: Install python tools
run: |
pip install plumbum pyyaml

Loading…
Cancel
Save