Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/VersionCalComment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Comment PR new module release when pr committed and labeled/unlabeled

on:
workflow_dispatch:
pull_request_target:
types: [opened, labeled, unlabeled]

permissions:
pull-requests: write

jobs:
set-env:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Setup azdev
env:
TITLE: "hello there"
run: |
echo "message=$(echo 'Suggested version: 1.0.0b1 for preview release and 1.0.0 for stable release')" >> $GITHUB_ENV
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- uses: actions/checkout@master
- name: Show workdirectory after site cloned
run: |
pwd
ls
- uses: actions/checkout@master
with:
repository: Azure/azure-cli
path: ./azure-cli
- name: Show workdirectory after cli cloned
run: |
pwd
ls
- name: Show parent workdirectory after extension cloned
run: |
mv azure-cli ../
cd ../
pwd
ls
- name: Install azdev
run: |
cd ../
python -m pip install --upgrade pip
set -ev
python -m venv env
chmod +x env/bin/activate
source ./env/bin/activate
pip install azdev
azdev --version
azdev setup -c azure-cli -r azure-cli-extensions --debug
az --version
pip list -v
- name: Echo results
run: |
echo ${message}
- name: comment on the pull request
uses: mshick/add-pr-comment@v2
with:
message: "${{ env.message }}"