From 57df1c6a28cc4a6cbe908b097c16b1296d9ba3ac Mon Sep 17 00:00:00 2001 From: choim Date: Thu, 12 Dec 2024 10:10:50 -0700 Subject: [PATCH] following the naming convetion of put files and testing DEV_troll_SW_GW_update_dag --- .../workflows/DEV_troll_SW_GW_update_dag.yml | 49 +++++++------------ .github/workflows/DEV_troll_site_list.yml | 2 +- 2 files changed, 19 insertions(+), 32 deletions(-) diff --git a/.github/workflows/DEV_troll_SW_GW_update_dag.yml b/.github/workflows/DEV_troll_SW_GW_update_dag.yml index 06ef32c25..4da06ec4e 100644 --- a/.github/workflows/DEV_troll_SW_GW_update_dag.yml +++ b/.github/workflows/DEV_troll_SW_GW_update_dag.yml @@ -26,36 +26,19 @@ jobs: changed_files: runs-on: ubuntu-latest # windows-latest || macos-latest outputs: - changed_file_list: ${{ steps.changed-files-list.outputs.changed_file_list }} + # Use this changed_file_list if you plan to use get-changed-files-action + changed_file_list: ${{ steps.changed-files-action.outputs.changed_file_list }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. + + # Using get-changed-files-action + - name: Get changed files action + id: changed-files-action + uses: ./.github/actions/get-changed-files - - name: Get changed files - id: changed-files - uses: tj-actions/changed-files@v41 - # NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit. - - - name: Make list of changed files - id: changed-files-list - env: - ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} - run: | - file_list="" - for file in $ALL_CHANGED_FILES; do - if [ $file_list ] - then - file_list=$file_list,$file - else - file_list=$file - fi - echo "$file was changed" - done - echo "Full changed file list: $file_list" - echo "changed_file_list=$file_list" >> "$GITHUB_OUTPUT" - - update-pipelines: + update_pipelines: needs: changed_files runs-on: arc-neon-gke #runs-on: ubuntu-latest @@ -69,10 +52,14 @@ jobs: steps: - uses: actions/checkout@v4 - run: ls -la - - - uses: actions/setup-python@v3 + + - name: Update pipelines + uses: ./.github/actions/update-pipelines with: - python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax - cache: 'pip' - - run: pip install -r .github/workflow_scripts/update_dag_pipelines/requirements.txt - - run: python3 -u .github/workflow_scripts/update_dag_pipelines/update_dag_pipelines.py + pachd_address: ${{ env.PACHD_ADDRESS }} + pach_token: ${{ env.PACH_TOKEN }} + paths: ${{ env.PATHS }} + transaction: ${{ env.TRANSACTION }} + update_scope: ${{ env.UPDATE_SCOPE }} + changed_files: ${{ env.CHANGED_FILES }} + \ No newline at end of file diff --git a/.github/workflows/DEV_troll_site_list.yml b/.github/workflows/DEV_troll_site_list.yml index 4395f8e8c..da48f37a7 100644 --- a/.github/workflows/DEV_troll_site_list.yml +++ b/.github/workflows/DEV_troll_site_list.yml @@ -7,7 +7,7 @@ on: - 'pipe/troll/site-list.json' workflow_dispatch: {} # Allows trigger of workflow from web interface jobs: - put-file: + put_files: runs-on: arc-neon-gke #runs-on: ubuntu-latest env: