Skip to content

Commit

Permalink
ci: Try a pre-canned action
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Aug 8, 2024
1 parent 9d661b6 commit 04454ea
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/wave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,11 @@ jobs:
file: "${{ matrix.files }}"
# TODO platform: ["linux-64", "osx-arm64"]

# Action runs on the issue comment, so we don't get the PR by default
# Use the gh cli to check out the PR
- name: Checkout Pull Request
run: gh pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}

- name: Commit condalock files to PR
run: |
if [[ $(git ls-files --modified --others) ]]; then
git config --global user.name 'actions-bot'
git config --global user.email '58130806+actions-bot@users.noreply.github.com'
git add --all
git commit --message "[condalock-command] autogenerated conda-lock files"
git push
fi
shell: bash -l {0}
- name: Commit and push changes
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.nf_core_bot_auth_token }}
commit_message: "[automated] autogenerated conda-lock files"

- name: Get the lock file path
uses: actions/github-script@v7
Expand Down

0 comments on commit 04454ea

Please sign in to comment.