-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (45 loc) · 1.42 KB
/
release-documentation-update.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
47
48
49
50
51
52
53
54
name: Update the documentation website
on:
workflow_dispatch:
jobs:
Update-Submodules:
runs-on: ubuntu-latest
if: startsWith(github.repository, 'osg-htc/')
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
fetch-depth: 0
- name: Pull, Merge, Push submodules
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git submodule update --init --recursive --remote
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Update Documentation"
git push
else
echo "no changes";
fi
publish-new-release:
runs-on: ubuntu-latest
if: startsWith(github.repository, 'osg-htc/')
needs: Update-Submodules
outputs:
tag: ${{ steps.publish-new-release-tag.outputs.tag }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Publish a new release
id: publish-new-release-tag
run: |
echo "tag=$( python3 ./.github/scripts/create-documentation-release.py ${{ secrets.GITHUB_TOKEN }} )" >> $GITHUB_OUTPUT
Call-publish-container:
if: startsWith(github.repository, 'osg-htc/')
needs: Publish-New-Release
uses: osg-htc/osg-portal/.github/workflows/publish-container.yml@master
secrets: inherit
with:
tag: ${{ needs.publish-new-release.outputs.tag }}