forked from ScottLogic/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 1.07 KB
/
test-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Schedule Job using Carbon Aware API
on:
push:
branches:
- gh-pages
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@main
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, templates/template2.yml'
# Time to check until - In format YYYY-MM-DDThh:mm:ssZ
end-time: '2023-11-17T11:51: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