Skip to content

Commit

Permalink
Updating Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
guptamukul-google committed Nov 17, 2021
1 parent 009c3fd commit e0a8c5e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ jobs:
pip install -r requirements.txt
working-directory: tools

- name: execute py script (scheduled) # run the checklicense_openpr.py
- name: execute py script (scheduled) # run the check-license.py
id: boilerplate-scheduled
if: github.event_name == 'schedule'
run: |
python checklicense_openpr.py
python check-license.py
working-directory: tools

- name: execute py script (manual) # run the checklicense_openpr.py
- name: execute py script (manual) # run the check-license.py
id: boilerplate-manual
if: github.event_name == 'workflow_dispatch'
run: |
if [[ "${{ github.event.inputs.PRNumber }}" =~ ^[0-9]+$ ]] || [[ "${{ github.event.inputs.PRNumber }}" == "All" ]]
then
python checklicense_openpr.py ${{ github.event.inputs.PRNumber }}
python check-license.py ${{ github.event.inputs.PRNumber }}
else
echo "INVALID PR Number ENTERED..."
exit 1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check-tf-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ jobs:
pip install -r requirements.txt
working-directory: tools

- name: execute py script (auto) # run the tf-plan.py
- name: execute py script (auto) # run the check-tf-plan.py
id: tf-plan-auto
if: github.event_name == 'pull_request'
run: |
python tf-plan.py ${{ github.event.number }}
python check-tf-plan ${{ github.event.number }}
working-directory: tools

- name: execute py script (manual) # run the tf-plan.py
- name: execute py script (manual) # run the check-tf-plan.py
id: tf-plan-manual
if: github.event_name == 'workflow_dispatch'
run: |
if [[ "${{ github.event.inputs.PRNumber }}" =~ ^[0-9]+$ ]]
then
python tf-plan.py ${{ github.event.inputs.PRNumber }}
python check-tf-plan ${{ github.event.inputs.PRNumber }}
else
echo "INVALID PR Number ENTERED..."
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
pip install -r requirements.txt
working-directory: tools

- name: execute py script # run the issue-notif.py
- name: execute py script # run the notifications.py
env:
WEBHOOK: ${{ secrets.WEBHOOK }}
id: issue-notif
run: |
python issue-notif.py
python notifications.py
working-directory: tools
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e0a8c5e

Please sign in to comment.