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