-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 963 Bytes
/
update-files.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
29
30
31
32
33
34
35
36
name: Update ServiceTag files
on:
workflow_dispatch:
schedule:
- cron: '0 0 21 * *'
jobs:
Run:
runs-on: ubuntu-latest
env:
buildConfiguration: 'Release'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Run
run: |
echo "UPDATE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
dotnet run --project $GITHUB_WORKSPACE/AzureIPNetworksDownloader/AzureIPNetworksDownloader.csproj --framework net8.0
- name: Create PR if necessary
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Update files for service tags as of ${{env.UPDATE_DATE}}'
title: 'Update files for service tags as of ${{env.UPDATE_DATE}}'
branch: update-service-tags
signoff: true