Install tea pr index step.
This commit is contained in:
@@ -73,26 +73,28 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd /tmp
|
cd /tmp
|
||||||
|
|
||||||
wget -q "${TEA_DL_URL}"
|
wget -q "${TEA_DL_URL}"
|
||||||
wget -q "${TEA_DL_URL}.sha256"
|
wget -q "${TEA_DL_URL}.sha256"
|
||||||
|
|
||||||
# Extract hash and manually verify file
|
# Read only the hash (strip whitespace)
|
||||||
sha_value=$(cat "tea-${TEA_VERSION}-linux-amd64.sha256")
|
sha_value=$(cat "tea-${TEA_VERSION}-linux-amd64.sha256" | tr -d '[:space:]')
|
||||||
echo "${sha_value} tea-${TEA_VERSION}-linux-amd64" | sha256sum -c -
|
|
||||||
|
|
||||||
mv "tea-${TEA_VERSION}-linux-amd64" /usr/bin/tea
|
# Verify using sha256sum
|
||||||
chmod +x /usr/bin/tea
|
echo "${sha_value} tea-${TEA_VERSION}-linux-amd64" | sha256sum -c -
|
||||||
|
|
||||||
pr_number=$(tea pr ls --repo "${{ gitea.repository }}" \
|
mv "tea-${TEA_VERSION}-linux-amd64" /usr/bin/tea
|
||||||
--state open \
|
chmod +x /usr/bin/tea
|
||||||
--fields index,state,head \
|
|
||||||
--output simple \
|
|
||||||
| awk '{print $1}')
|
|
||||||
|
|
||||||
echo "${pr_number}"
|
pr_number=$(tea pr ls --repo "${{ gitea.repository }}" \
|
||||||
echo "pr_number=${pr_number}" >> "$GITHUB_OUTPUT"
|
--state open \
|
||||||
|
--fields index,state,head \
|
||||||
|
--output simple \
|
||||||
|
| awk '{print $1}')
|
||||||
|
|
||||||
|
echo "${pr_number}"
|
||||||
|
echo "pr_number=${pr_number}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
||||||
- name: Generate .env from Hashicorp Vault
|
- name: Generate .env from Hashicorp Vault
|
||||||
|
|||||||
Reference in New Issue
Block a user