Skip to content

Commit

Permalink
test carbon aware scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcoll committed Nov 16, 2023
1 parent 6ca9acc commit 5de9076
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Schedule Job using Carbon Aware API

on:
workflow_dispatch:

jobs:
schedule_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Schedule job using Carbon Aware API
uses: jhcoll/carbon-aware-schedule-action
with:
# Region to check carbon intensity for - can be any azure region - however if using github hosted runners will be one of the following - 'eastus, eastus2, westus2, centralus, southcentralus'
region: 'eastus'
# path to template job to be scheduled
template-paths: 'templates/template.yml'
# Time to check until - In format YYYY-MM-DDThh:mm:ssZ
end-time: '2023-11-16T11:00:00Z' # Optional - defaults to +24hr
# Estimated job length in minutes
estimated-job-length: '10' # Optional - defaults to 10
# Output path for scheduled jobs
output-path: '.github/workflows/' # Optional - defaults to ".github/workflows/"
- name: get changes
run: |
git status

0 comments on commit 5de9076

Please sign in to comment.