-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Switch change management action to shared custom action
- Loading branch information
Showing
2 changed files
with
11 additions
and
226 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |