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:
121
121
env :
122
122
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123
123
PACKS : ${{ matrix.packs }}
124
+ ORG : ${{ github.repository_owner }}
124
125
run : |
125
126
set -e
126
127
127
128
PACK_PATH="ql/${PACKS}/qlpack.yml"
128
129
echo "[+] Pack Path :: $PACK_PATH"
130
+
129
131
CURRENT_VERSION=$(grep version $PACK_PATH | awk '{print $2}')
130
132
PACK_FULLNAME=$(cat $PACK_PATH | grep "name:" | awk '{print $2}')
131
133
PACK_NAME=$(echo $PACK_FULLNAME | awk -F '/' '{print $2}')
132
134
echo "[+] Pack Name :: $PACK_NAME ($PACK_FULLNAME)"
133
135
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]')
135
137
echo "Packs :: ${CURRENT_VERSION} -> ${PUBLISHED_VERSION}"
136
138
137
139
if [ "$PUBLISHED_VERSION" != "$CURRENT_VERSION" ]; then
You can’t perform that action at this time.
0 commit comments