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 - name: Configure docker
run: | run: |
bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }} bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }}
echo "::set-env name=PR_FILES::../../REPO"
- name: Install python tools - name: Install python tools
run: | run: |
pip install plumbum PyGithub pyyaml pip install plumbum PyGithub pyyaml
@ -158,6 +159,7 @@ jobs:
ODOO_BASE_MODULES=$(docker inspect \ ODOO_BASE_MODULES=$(docker inspect \
--format '{{ index .Config.Labels "dinar.odoo.modules"}}' \ --format '{{ index .Config.Labels "dinar.odoo.modules"}}' \
dinar_odoo_1) dinar_odoo_1)
echo "ODOO_BASE_MODULES=$ODOO_BASE_MODULES"
# sets environment variables that available in next steps via $ {{ env.PR_... }} notation # sets environment variables that available in next steps via $ {{ env.PR_... }} notation
cd REPO cd REPO
@ -238,6 +240,7 @@ jobs:
- name: Configure Docker - name: Configure Docker
run: | run: |
bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }} bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }}
echo "::set-env name=PR_FILES::../../REPO"
- name: Analyze PR - name: Analyze PR
run: | run: |
# sets environment variables that available in next steps via $ {{ env.PR_... }} notation # 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 }} password: ${{ env.REGISTRY_PASSWORD }}
buildargs: ODOO_VERSION,AGGREGATE,PIP_INSTALL_ODOO,CLEAN,COMPILE,LOCAL_CUSTOM_DIR buildargs: ODOO_VERSION,AGGREGATE,PIP_INSTALL_ODOO,CLEAN,COMPILE,LOCAL_CUSTOM_DIR
workdir: REPO/.DINAR/ workdir: REPO/.DINAR/
cache: ${{ github.event_name != 'schedule' }}
- name: Install python tools - name: Install python tools
run: | run: |
pip install plumbum pyyaml pip install plumbum pyyaml

Loading…
Cancel
Save