Skip to content

Commit f57bbb7

Browse files
committed
feat(ci): Update org owner
1 parent adcf1a9 commit f57bbb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,19 @@ jobs:
121121
env:
122122
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123123
PACKS: ${{ matrix.packs }}
124+
ORG: ${{ github.repository_owner }}
124125
run: |
125126
set -e
126127
127128
PACK_PATH="ql/${PACKS}/qlpack.yml"
128129
echo "[+] Pack Path :: $PACK_PATH"
130+
129131
CURRENT_VERSION=$(grep version $PACK_PATH | awk '{print $2}')
130132
PACK_FULLNAME=$(cat $PACK_PATH | grep "name:" | awk '{print $2}')
131133
PACK_NAME=$(echo $PACK_FULLNAME | awk -F '/' '{print $2}')
132134
echo "[+] Pack Name :: $PACK_NAME ($PACK_FULLNAME)"
133135
134-
PUBLISHED_VERSION=$(gh api /orgs/advanced-security/packages/container/$PACK_NAME/versions --jq '.[0].metadata.container.tags[0]')
136+
PUBLISHED_VERSION=$(gh api /orgs/${ORG}/packages/container/$PACK_NAME/versions --jq '.[0].metadata.container.tags[0]')
135137
echo "Packs :: ${CURRENT_VERSION} -> ${PUBLISHED_VERSION}"
136138
137139
if [ "$PUBLISHED_VERSION" != "$CURRENT_VERSION" ]; then

0 commit comments

Comments
 (0)