You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VERIFY WE SHOULD DO THIS: On schedule-monthly.yml the previous two steps for "- name: Checkout repository" and "- name: Setup node" have been replaced with the current single step "- name: Github action for installing npm dependencies".
Since the current schedule-thu-1100.yml was scheduled to run on the first Thursday of the month, this action has been revised/ renamed to schedule-monthly.yml and now is scheduled to run on the first day of the month.
Because of this change, there no longer is a schedule-thu-1100.yml file.
Note that there is an existing action (Fix bug that prevents GHA "Schedule Monthly" from running hackforla/website#4788) with the same name. This action/ file is renamed schedule-monthly-PREV.yml. This action is not/ has not been running either. The renaming is intended to be temporary because the plan is to explore how to integrate the other action's steps into this action.
The "Get current date" step in the .yml file was deleted because a.) the code is deprecated and b.) it is unnecessary. (The previous file used this step to cause the automation to run only on the first Thursday of the month.)
The working-directory in the step "Install npm dependencies" is refactored to the correct directory i.e. ./github-actions/trigger-schedule/github-data. (This was one of the reasons the existing GHA has not worked- this refactor fixes the action.)
The node-version is updated to version 18. (The previous version 14 is incompatible with the current modules.)
The run path in the step "Trim members" is refactored to the correct directory and the contributors-data.js is moved to the same directory as above. (This was another one of the reasons the existing GHA was not working. The @octokit/rest module cannot be found unless the js file resides in the same directory as the package.json file.)
Since this js file is moved, the trim-contributors directory is empty and so is deleted.
Additional functionality has been added to contributors-data.js:
The automatic removal of members now occurs after two months of inactivity.
Members who are one month inactive are placed on list so that they can be contacted. (For a future PR, an automatic notification should be sent to these members to give them a chance to become active again before deletion= See "FUTURE revisions/ additions" below)
Since files have been renamed and moved, the "Files changed" link above will not give a useful comparison of what is different. See the 'Diffchecker' screenshots below.
Why did you make the changes (we will use this info to test)?
Changes were made primarily to get this action working again (it has been failing for over a year due to misdirected file paths.)
Other reasons are given in the text above.
FUTURE revisions/ additions are detailed in ER hackforla#5163
Fixes # 4788
What changes did you make?
VERIFY WE SHOULD DO THIS: On
schedule-monthly.yml
the previous two steps for "- name: Checkout repository" and "- name: Setup node" have been replaced with the current single step "- name: Github action for installing npm dependencies".Since the current
schedule-thu-1100.yml
was scheduled to run on the first Thursday of the month, this action has been revised/ renamed toschedule-monthly.yml
and now is scheduled to run on the first day of the month.Because of this change, there no longer is a
schedule-thu-1100.yml
file.Note that there is an existing action (Fix bug that prevents GHA "Schedule Monthly" from running hackforla/website#4788) with the same name. This action/ file is renamed
schedule-monthly-PREV.yml
. This action is not/ has not been running either. The renaming is intended to be temporary because the plan is to explore how to integrate the other action's steps into this action.The "Get current date" step in the .yml file was deleted because a.) the code is deprecated and b.) it is unnecessary. (The previous file used this step to cause the automation to run only on the first Thursday of the month.)
The
working-directory
in the step "Install npm dependencies" is refactored to the correct directory i.e../github-actions/trigger-schedule/github-data
. (This was one of the reasons the existing GHA has not worked- this refactor fixes the action.)The
node-version
is updated to version 18. (The previous version 14 is incompatible with the current modules.)The
run
path in the step "Trim members" is refactored to the correct directory and thecontributors-data.js
is moved to the same directory as above. (This was another one of the reasons the existing GHA was not working. The@octokit/rest
module cannot be found unless the js file resides in the same directory as thepackage.json
file.)Since this js file is moved, the
trim-contributors
directory is empty and so is deleted.Additional functionality has been added to
contributors-data.js
:Since files have been renamed and moved, the "Files changed" link above will not give a useful comparison of what is different. See the 'Diffchecker' screenshots below.
Why did you make the changes (we will use this info to test)?
FUTURE revisions/ additions are detailed in ER hackforla#5163
Screenshots of Proposed Changes Of The Website
Diffchecker for new `schedule-monthly.yml`
Diffchecker for `contributors-data.js`
The text was updated successfully, but these errors were encountered: