Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
Liman MYS - Çekirdek
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
liman
Liman MYS - Çekirdek
Commits
5df489aa
Unverified
Kaydet (Commit)
5df489aa
authored
Nis 20, 2021
tarafından
Baran Sekin
Kaydeden (comit)
GitHub
Nis 20, 2021
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #151 from limanmys/1.7-dev
Fixed workflow bugs
üst
a9058d27
edb63109
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
main.yml
.github/workflows/main.yml
+9
-7
No files found.
.github/workflows/main.yml
Dosyayı görüntüle @
5df489aa
...
@@ -32,8 +32,8 @@ jobs:
...
@@ -32,8 +32,8 @@ jobs:
echo "$PRIVATE_KEY" | gpg --import --batch --yes --passphrase $PASSPHRASE
echo "$PRIVATE_KEY" | gpg --import --batch --yes --passphrase $PASSPHRASE
VERSION=`cat package/liman/server/storage/VERSION`
VERSION=`cat package/liman/server/storage/VERSION`
COMMIT="${GITHUB_REF#refs/heads/} :
"
MESSAGE="Branch: ${GITHUB_REF#refs/heads/} \n
"
COMMIT+=`git --git-dir=package/liman/server/.git log -1 --pretty=%B`
MESSAGE+="Version: $VERSION \n"
sudo chmod +x package/liman/server/storage/create_deb.sh
sudo chmod +x package/liman/server/storage/create_deb.sh
./package/liman/server/storage/create_deb.sh master master master master $GITHUB_RUN_NUMBER $PASSPHRASE
./package/liman/server/storage/create_deb.sh master master master master $GITHUB_RUN_NUMBER $PASSPHRASE
...
@@ -46,12 +46,13 @@ jobs:
...
@@ -46,12 +46,13 @@ jobs:
cp package.deb $FILE_NAME
cp package.deb $FILE_NAME
output
=$(curl --location --request POST "$MATTERMOST_URL/api/v4/files?channel_id=$CHANNEL" \
post_id
=$(curl --location --request POST "$MATTERMOST_URL/api/v4/files?channel_id=$CHANNEL" \
--header "Authorization: Bearer $MATTERMOST_TOKEN" \
--header "Authorization: Bearer $MATTERMOST_TOKEN" \
--header 'Content-Type: multipart/form-data' \
--header 'Content-Type: multipart/form-data' \
--form "files=@$FILE_NAME")
--form "files=@$FILE_NAME" | jq -r '.file_infos[0].id')
post_id=$(echo $output | grep '"id":"(.*)"' -oE | cut -d "," -f 1 | cut -d ":" -f 2 | xargs)
echo $post_id
if [ -z "$post_id" ]; then
if [ -z "$post_id" ]; then
echo "Failed to create post :("
echo "Failed to create post :("
exit 4
exit 4
...
@@ -59,5 +60,5 @@ jobs:
...
@@ -59,5 +60,5 @@ jobs:
curl --location --request POST "$MATTERMOST_URL/api/v4/posts" \
curl --location --request POST "$MATTERMOST_URL/api/v4/posts" \
--header "Authorization: Bearer $MATTERMOST_TOKEN" \
--header "Authorization: Bearer $MATTERMOST_TOKEN" \
--header "Content-Type: application/json" \
--header "Content-Type: application/json" \
--data "{\"file_ids\":[\"$post_id\"],\"message\":\"$
COMMIT
\",\"channel_id\":\"$CHANNEL\"}"
--data "{\"file_ids\":[\"$post_id\"],\"message\":\"$
MESSAGE
\",\"channel_id\":\"$CHANNEL\"}"
fi
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment