Skip to content

Commit

Permalink
chore: Switch change management action to shared custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bodmer committed Sep 26, 2023
1 parent 30bcf97 commit 5984ddf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 226 deletions.
203 changes: 0 additions & 203 deletions .github/change_management.py

This file was deleted.

34 changes: 11 additions & 23 deletions .github/workflows/change-management.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
name: 'Change Management'

# **What it does**: Adds a link to PRs with a newly created Asana task.
# **Why we have it**: To create a record of all code changes.
# **Who does it impact**: Everyone

on:
pull_request:
types: [opened, edited, closed, reopened]

jobs:
change-management:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
name: Change Management

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: install dependencies
run: |
pip install requests
- name: "Change Management"
working-directory: ./.github
run: |
echo '${{ toJSON(github.event.pull_request) }}' > pr_info.json
python change_management.py \
"${{ github.repository }}" \
pr_info.json \
"${{ github.event.action }}"
env:
ASANA_API_TOKEN: "${{ secrets.ASANA_API_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: nrfta/action-change-management@v1
env:
ASANA_API_TOKEN: '${{ secrets.ASANA_API_TOKEN }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 5984ddf

Please sign in to comment.