Skip to content

Commit

Permalink
check-dead-repos.fish: Try and use GTIHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
scorphus committed Jul 3, 2022
1 parent 7c396b4 commit 50c23f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-dead-repos.fish
Expand Up @@ -9,14 +9,17 @@
# Copyright (c) 2021, Fabian Homborg <FHomborg@gmail.com>
# Copyright (c) 2021, Pablo S. Blum de Aguiar <scorphus@gmail.com>


function read_repository -a user_repo
set -l url https://api.github.com/repos/$user_repo
test "$USERNAME:$TOKEN" != ":"
and curl -s -u $USERNAME:$TOKEN $url
or curl -s $url
or curl -s -H "Authorization: Bearer $GTIHUB_TOKEN" $url
end

echo "======"
curl -v -H "Authorization: Bearer $GTIHUB_TOKEN" https://api.github.com/repos/sokryptk/kovial
echo "======"

set -l packages packages/*
set -l python_script (type -p read_repository | sed s/\\.fish\$/\\.py/)
set -l count 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-dead-repos.yml
Expand Up @@ -11,6 +11,7 @@ jobs:
HOME: /home/nemo
USERNAME: ${{ secrets.USERNAME }}
TOKEN: ${{ secrets.TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
container: ohmyfish/ohmyfish
steps:
- name: Change current working directory owner and group
Expand Down

6 comments on commit 50c23f5

@Nable80
Copy link

@Nable80 Nable80 commented on 50c23f5 Jul 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTIHUB_TOKEN or GITHUB_TOKEN? It looks like a typo.

@scorphus
Copy link
Member Author

@scorphus scorphus commented on 50c23f5 Jul 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTIHUB_TOKEN or GITHUB_TOKEN? It looks like a typo.

Oh! 🤦🏻‍♂️ I saw your comment just too late! Let me check if that works, thou.

@scorphus
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it does work! 🤦🏻‍♂️🤦🏻‍♂️🤦🏻‍♂️ At least it was nice learning some stuff about GitHub Actions. I'll probably undo everything I changed. But not today.

Thanks a lot, @Nable80!

BTW, how did you catch that, I wonder? What caught your attention to this repo and/or commit? (I'm curious 🙂)

@Nable80
Copy link

@Nable80 Nable80 commented on 50c23f5 Jul 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I subscribed to this repo some time ago 'cos I use fish every day and it perfectly suits me.

Sometimes I look at github's notification feed (the main page) and randomly (well, one can call it intuition, Divine Hand or whatever sounds appropriate, I just somehow feel the right time and direction) click on most recent commits, look briefly and often find issues of this kind. Some of my findings:
anphsw/memtest86@2011102#r77490128
leecher1337/ntvdmx64@e387370#r49335756
edosedgar/stm32f0_ARM#10 (comment)
Textualize/rich#1038 (comment)

I'm not sure but it also looks like an exercise for training my attention. I'm working with papers a lot (I hate it but it's a part of engineer's work) and it's a crucial ability to spot all mistakes and unclear sentences. This random-like internet-wandering also looks like a sign of mental health issues but it helps other people after all…

@scorphus
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I subscribed to this repo some time ago 'cos I use fish every day and it perfectly suits me.

Thanks for sharing that, it's great to know! 🤗

Sometimes I look at github's notification feed (the main page) and randomly (well, one can call it intuition, Divine Hand or whatever sounds appropriate, I just somehow feel the right time and direction) […]

That's just so cool! And the way you put it, haha! Yeah, I do that sometimes. I'm better do it more often to pass along the favor! ❤️ (and for the added benefits)

[…] click on most recent commits, look briefly and often find issues of this kind. Some of my findings: anphsw/memtest86@2011102#r77490128 leecher1337/ntvdmx64@e387370#r49335756 edosedgar/stm32f0_ARM#10 (comment) Textualize/rich#1038 (comment)

That's just awesome! I bet those exchanges gave such a great feeling!

I'm not sure but it also looks like an exercise for training my attention. […]

That's a good advice. 👍 Thanks!

[…] I'm working with papers a lot (I hate it but it's a part of engineer's work) and it's a crucial ability to spot all mistakes and unclear sentences. This random-like internet-wandering also looks like a sign of mental health issues but it helps other people after all…

Keep it up, it definitely helps a bunch! 🙌 Thanks again!

@Nable80
Copy link

@Nable80 Nable80 commented on 50c23f5 Jul 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your work and for this kind reply too!

Please sign in to comment.