You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/update-wiki.yml
+7-79Lines changed: 7 additions & 79 deletions
Original file line number
Diff line number
Diff line change
@@ -13,82 +13,10 @@ jobs:
13
13
steps:
14
14
- name: Checkouting main code
15
15
uses: actions/checkout@v2
16
-
- name: Parsing git info
17
-
run: |
18
-
echo "::set-env name=LAST_COMMIT_AUTHOR_EMAIL::$(git show -s --format='%ae' HEAD)"
19
-
echo "::set-env name=LAST_COMMIT_AUTHOR_NAME::$(git show -s --format='%an' HEAD)"
20
-
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
21
-
if [ "$BRANCH_NAME" == 'HEAD' ]; then
22
-
BRANCH_NAME=$(git describe --tags --abbrev=0)
23
-
fi;
24
-
echo "::set-env name=BRANCH_NAME::$BRANCH_NAME"
25
-
- name: Checking for required secrets
26
-
run: |
27
-
if [ -z "${{ secrets.WIKI_GITHUB_UPDATE_TOKEN }}" ]; then
28
-
echo "Secret WIKI_GITHUB_UPDATE_TOKEN is missing. Use this link to create required token -> https://github.com/settings/tokens/new?scopes=repo&description=wiki%20api%20generator <- and than add to project secrets."
29
-
exit 1
30
-
fi;
31
-
if [ -z "${{ secrets.WIKI_GITHUB_UPDATE_USER }}" ]; then
32
-
echo "Secret WIKI_GITHUB_UPDATE_USER is missing. Set this to username for who token belongs."
0 commit comments