-
Notifications
You must be signed in to change notification settings - Fork 118
33 lines (31 loc) · 1.06 KB
/
refresh.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
name: Refresh Non-appservice Images
on:
repository_dispatch:
types: [refresh]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0
token: ${{ secrets.PIPELINE_ADMIN }}
- name: Create Rebuild Branch
id: createBranch
run: |
set -e
git config --local user.email "[email protected]"
git config --local user.name "Azure Functions"
git fetch --all
git checkout ${{ github.event.client_payload.targetTag }}
date > refresh-time.txt
git add refresh-time.txt
git commit -m "Refresh Images for ${{ github.event.client_payload.targetTag }}"
git checkout -b "refresh/${{ github.event.client_payload.targetTag }}-refresh"
cd host
./verify-republish-pipeline.sh ${{ github.event.client_payload.targetTag }}
git push origin "refresh/${{ github.event.client_payload.targetTag }}-refresh" --force
env:
GITHUB_TOKEN: ${{ secrets.PIPELINE_ADMIN }}