-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (38 loc) · 1.31 KB
/
update-context-validation.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
37
38
39
40
41
42
43
44
45
46
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
name: Context Metadata Update
on:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
name: 'Update Context Products from Registry'
runs-on: ubuntu-latest
if: github.actor != 'pdsen-ci'
steps:
- uses: actions/checkout@v4
with:
lfs: true
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Updating context product metadata
run: |
build/update_context.sh
git config --local user.email "[email protected]"
git config --local user.name "PDSEN CI Bot"
git pull origin main
echo "weekly update context product info from registry"
git add .
git commit -m "weekly update context product info from registry" --allow-empty
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
branch: main