@@ -54,20 +54,21 @@ jobs:
5454 p12-file-base64 : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
5555 # The password used to import the PKCS12 file.
5656 p12-password : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
57- - name : Updating and upgrading brew
57+ - name : Updating and upgrading brew to a specific version
5858 run : |
59- git config --global pack.windowMemory "100m"
60- git config --global pack.SizeLimit "100m"
61- git config --global pack.threads "1"
62- git config --global pack.window "0"
63- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
6459 brew --version
60+ cd $(brew --repo)
61+ git fetch --tags
62+ git checkout 4.4.15
63+ export HOMEBREW_NO_AUTO_UPDATE=1
64+ brew --version
65+
6566 - name : Install gon
6667 run : |
6768 brew install Bearer/tap/gon
6869 - name : Setup Docker on macOS
6970 if : inputs.dev == false
70- uses : douglascamata/setup-docker-macos-action@8d5fa43892aed7eee4effcdea113fd53e4d4bf83 # v1-alpha
71+ uses : douglascamata/setup-docker-macos-action@4fe96839fcba8a2d746e020d00a89a37afbc7dc9 # v1-alpha.15
7172 - name : Test docker
7273 if : inputs.dev == false
7374 run : |
8586 run : |
8687 brew install sigstore/tap/cosign
8788
88- - name : Add and Commit qemu.rb
89- if : inputs.dev == false
90- run : |
91- git add qemu.rb
92- git commit -m "Add qemu.rb"
9389 - name : Configure AWS Credentials
9490 uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2
9591 with :
@@ -142,35 +138,12 @@ jobs:
142138 COSIGN_PASSWORD : ${{ secrets.COSIGN_PASSWORD }}
143139
144140 notify :
145- runs-on : ubuntu-latest
146- if : inputs.dev == false
147141 needs : build
148- steps :
149- - name : Get latest release notes
150- id : release
151- env :
152- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
153- run : |
154- body_release="$(gh api -H "Accept: application/vnd.github.v3+json" /repos/Checkmarx/ast-cli/releases/latest | jq -r '.body' )"
155- body_release="${body_release//$'\n'/'%0A'}"
156- echo "::set-output name=body_release::$body_release"
157-
158- - name : Converts Markdown to HTML
159- id : convert
160- uses : lifepal/markdown-to-html@71ed74a56602597c05dd7dd0e561631557158ed5 # v1.1
161- with :
162- text : " ${{ steps.release.outputs.body_release }}"
163-
164- - name : Clean html
165- id : clean
166- run : |
167- clean="$(echo "${{ steps.convert.outputs.html }}" | awk '{gsub(/id=.[a-z]+/,"");print}' | tr -d '\n')"
168- echo "$clean"
169- echo "::set-output name=clean::$clean"
170-
171- - name : Send a Notification
172- id : notify
173- uses : thechetantalwar/teams-notify@8a78811f5e8f58cdd204efebd79158006428c46b # v2
174- with :
175- teams_webhook_url : ${{ secrets.TEAMS_WEBHOOK_URI }}
176- message : " ${{ steps.clean.outputs.clean }}"
142+ uses : Checkmarx/plugins-release-workflow/.github/workflows/release-notify.yml@main
143+ with :
144+ product_name : CLI
145+ release_version : ${{ inputs.tag }}
146+ cli_release_version : " "
147+ release_author : " Phoenix Team"
148+ release_url : https://github.com/Checkmarx/ast-cli/releases/tag/${{ inputs.tag }}
149+ secrets : inherit
0 commit comments