Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Bump codecov/codecov-action to v4 #1

Closed
njzjz opened this issue Mar 23, 2024 · 0 comments
Closed

[Task] Bump codecov/codecov-action to v4 #1

njzjz opened this issue Mar 23, 2024 · 0 comments

Comments

@njzjz
Copy link
Collaborator

njzjz commented Mar 23, 2024

Bump codecov/codecov-action from v3 to v4.

Note

codecov/codecov-action@v4 needs the CODECOV_TOKEN secret. It should be set if not set.
In the deepmodeling organization, it has been set as a shared secret.

Note

By default, the bot submits PR to the default branch. The target branch should be changed if the default branch is not the developing branch.

Running scripts:

from glob import glob

for ff in glob(".github/workflows/*.yml") + glob(".github/workflows/*.yaml"):
    with open(ff) as f:
        lines = f.readlines()
    for ii, line in enumerate(lines):
        if line.strip() == "- uses: codecov/codecov-action@v3":
            lines[ii] = line.replace("v3", "v4") + \
                        line.replace("- uses: codecov/codecov-action@v3", "  env:") + \
                        line.replace("- uses: codecov/codecov-action@v3", "    CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}")
            with open(ff, 'w') as f:
                f.write("".join(lines))
            break

        elif line.strip() == "uses: codecov/codecov-action@v3":
            lines[ii] = line.replace("v3", "v4") + \
                        line.replace("uses: codecov/codecov-action@v3", "env:") + \
                        line.replace("uses: codecov/codecov-action@v3", "  CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}")
            with open(ff, 'w') as f:
                f.write("".join(lines))
            break

Running command:

For @njzjz account:

multi-gitter run "python $PWD/codecov-action.py" --author-email "48687836+njzjz-bot@users.noreply.github.com" --author-name "njzjz-bot[bot]" -B bump-codecov-v4 --fork -U njzjz --skip-forks -m 'CI: Bump codecov/codecov-action from v3 to v4

See https://github.com/njzjz-bot/njzjz-bot/issues/1.
'

For @deepmodeling organization:

multi-gitter run "python $PWD/codecov-action.py" --author-email "48687836+njzjz-bot@users.noreply.github.com" --author-name "njzjz-bot[bot]" -B bump-codecov-v4 --fork -O deepmodeling --skip-forks -m 'CI: Bump codecov/codecov-action from v3 to v4

See https://github.com/njzjz-bot/njzjz-bot/issues/1.
'
njzjz-bot added a commit to njzjz-bot/gaussianrunner that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/zhihubackup that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dpamber that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/qiuwenbot that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dpdata_ani that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dpdata_qdpi that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/deepmd-kit that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dpgen that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dargs that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dpti that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/fpop that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/APEX that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dpdata that referenced this issue Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/dpgen2 that referenced this issue Mar 23, 2024
@njzjz njzjz changed the title [Activity] Bump codecov/codecov-action to v4 [Task] Bump codecov/codecov-action to v4 Mar 23, 2024
njzjz-bot added a commit to njzjz-bot/mddatasetbuilder that referenced this issue Mar 24, 2024
njzjz pushed a commit to tongzhugroup/mddatasetbuilder that referenced this issue Mar 24, 2024
wanghan-iapcm pushed a commit to deepmodeling/dpdata that referenced this issue Mar 25, 2024
wanghan-iapcm pushed a commit to deepmodeling/dpgen2 that referenced this issue Mar 25, 2024
wanghan-iapcm pushed a commit to deepmodeling/dpgen that referenced this issue Mar 25, 2024
See njzjz-bot/njzjz-bot#1.

Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
njzjz pushed a commit to njzjz/qiuwenbot that referenced this issue Mar 25, 2024
njzjz pushed a commit to njzjz/dpamber that referenced this issue Mar 25, 2024
njzjz pushed a commit to njzjz/zhihubackup that referenced this issue Mar 25, 2024
njzjz pushed a commit to njzjz/gaussianrunner that referenced this issue Mar 25, 2024
njzjz pushed a commit to njzjz/dpdata_ani that referenced this issue Mar 25, 2024
Yi-FanLi added a commit to deepmodeling/dpti that referenced this issue Apr 3, 2024
See njzjz-bot/njzjz-bot#1.

Co-authored-by: Yifan Li李一帆 <yifanl0716@gmail.com>
njzjz pushed a commit to njzjz/dpdata_qdpi that referenced this issue Apr 3, 2024
@njzjz njzjz closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant