File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments