httpcat-cli 0.3.1-rc.1 → 0.3.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,9 +35,18 @@ jobs:
|
|
|
35
35
|
|
|
36
36
|
- name: Setup GitHub CLI
|
|
37
37
|
if: github.event_name == 'workflow_run'
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
run: |
|
|
39
|
+
if ! command -v gh &> /dev/null; then
|
|
40
|
+
type -p curl >/dev/null || (apt update && apt install curl -y)
|
|
41
|
+
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
|
|
42
|
+
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
|
|
43
|
+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
|
|
44
|
+
&& apt update \
|
|
45
|
+
&& apt install gh -y
|
|
46
|
+
fi
|
|
47
|
+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
|
|
48
|
+
env:
|
|
49
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
41
50
|
|
|
42
51
|
- name: Get version from release
|
|
43
52
|
id: version
|