Skip to content

Commit

Permalink
iam cleanup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sqin2019 committed Jul 19, 2023
1 parent 2399247 commit f82b135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/iam_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
START_TIME: '${{ github.event.head_commit.timestamp }}'
run: |
for file in requests; do
mergeTime=$(git log -1 --format=%ci ${file})
current_time=$(date +%s)
mergeTime=$(git log -1 --format=%ct ${file})
# duration=$(awk -F_ '{print $2}' <<< ${file})
# expiry=$(date -u -d "${mergeTime} ${duration}" --rfc-3339=seconds)
if [[ ${current_time} -gt ${mergeTime} ]]; then
Expand Down

0 comments on commit f82b135

Please sign in to comment.