Skip to content

Commit

Permalink
chore(repo): readd scheduled limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle committed Sep 25, 2023
1 parent 08dac9f commit b1f6625
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/composite_actions/log_cw_metric_wrapper/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,22 @@ inputs:
runs:
using: "composite"
steps:
#- name: Exit if not scheduled
# shell: bash
# run: |
# if [ "${{ github.event_name }}" != "schedule" ]; then
# echo "This was not triggered by a schedule, skipping."
# echo "SKIP=true" >> $GITHUB_ENV
# fi
- name: Exit if not scheduled
shell: bash
run: |
if [ "${{ github.event_name }}" != "schedule" ]; then
echo "This was not triggered by a schedule, skipping."
echo "SKIP=true" >> $GITHUB_ENV
fi
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
if: env.SKIP != 'true'
with:
persist-credentials: false
submodules: true

- name: Configure AWS credentials
#if: env.SKIP != 'true'
if: env.SKIP != 'true'
uses: aws-actions/configure-aws-credentials@04b98b3f9e85f563fb061be8751a0352327246b0 # 3.0.1
with:
unset-current-credentials: true
Expand All @@ -76,7 +77,7 @@ runs:
role-duration-seconds: 900

- name: Log the CW Metrics
#if: env.SKIP != 'true'
if: env.SKIP != 'true'
uses: ./.github/composite_actions/log_cw_metric
with:
job-status: ${{ inputs.job-status }}
Expand Down

0 comments on commit b1f6625

Please sign in to comment.