From 440bca193fca0ce00d45395765bf128e77ee1103 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Thu, 8 Aug 2024 11:43:51 -0500 Subject: [PATCH] ci: Use Commit step from prettier linting https://github.com/nf-core/modules/blob/90b1d1bd7f9474e173abd9e4082dedb559c7542a/.github/workflows/fix-linting.yml#L62-L71 Co-authored-by: mashehu --- .github/workflows/wave.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/wave.yml b/.github/workflows/wave.yml index 00ee152eaf48..b645061ce4c5 100644 --- a/.github/workflows/wave.yml +++ b/.github/workflows/wave.yml @@ -55,7 +55,6 @@ jobs: conda-lock mamba - # Run conda-lock - name: Run conda-lock run: | rm --force conda-lock.yml @@ -64,12 +63,15 @@ jobs: MAMBA: "--mamba" shell: bash -l {0} - # FIXME Why can nothing push? - # - name: Commit and push changes - # uses: devops-infra/action-commit-push@master - # with: - # github_token: "${{ secrets.GITHUB_TOKEN }}" - # commit_message: "[automated] autogenerated conda-lock files" + - name: Commit & push changes + run: | + git config user.email "core@nf-co.re" + git config user.name "nf-core-bot" + git config push.default upstream + git add . + git status + git commit -m "[automated] autogenerated conda-lock files" + git push - name: Get the lock file path uses: actions/github-script@v7