Skip to content

Commit 5b58274

Browse files
committed
update:ci:lint:attempt-1
1 parent da0527e commit 5b58274

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/lint_badge.yml

+4-17
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,13 @@ jobs:
3333
pip install '.[test]'
3434

3535
- name: Linting
36-
uses: YaoYinYing/pylint-github-action@b2d380e8ed4c41d56b38ce857f9be22c475d8122
36+
uses: YaoYinYing/pylint-github-action@3975648a269de4f22403ff78ec53736dba2206c2
3737
with:
3838
lint-path: src # lint src package
3939
python-version: ${{ env.lint-python-version }} # python version which will lint the package
4040
badge-text: pylint score
4141
badge-file-name: pylint_scan
4242
badge-artifact-name: upload-my-awesome-badge-${{ github.run_id }}
43-
44-
- name: PyLint Badge Fetching
45-
id: pylint-badge-fetch
46-
uses: actions/download-artifact@v4
47-
with:
48-
name: upload-my-awesome-badge-${{ github.run_id }}
49-
path: badge_dir_with_uniq_name
50-
51-
- name: Display structure of downloaded files
52-
run: ls -R badge_dir_with_uniq_name
53-
54-
- name: Upload to R2
55-
uses: cloudflare/wrangler-action@v3
56-
with:
57-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
58-
command: r2 object put ${{ secrets.R2_BUCKET }}/badge_dir_with_uniq_name/RosettaPy/pylint/pylint_scan.svg --file badge_dir_with_uniq_name/pylint_scan.svg --content-type image/svg+xml
43+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
44+
R2_BUCKET: ${{ secrets.R2_BUCKET }}
45+
R2_badge_path: badge_dir_with_uniq_name/RosettaPy/pylint

0 commit comments

Comments
 (0)