Skip to content

Commit

Permalink
Strip refs/heads/ from full branch ref path
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Yu committed Jan 21, 2020
1 parent eb4fc4f commit 308981d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/wiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- master
- wiki-merge-utils
paths:
- '.gitlab/workflows/wiki.yaml'
- 'wiki/**'
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
publish:
name: Publish to GitHub Wiki
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.repository == 'wwfxuk/rez'
needs: build

steps:
Expand Down
2 changes: 1 addition & 1 deletion wiki/update-wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
TMP_NAME = ".rez-gen-wiki-tmp" # See also: .gitignore
TEMP_WIKI_DIR = os.getenv("TEMP_WIKI_DIR", os.path.join(THIS_DIR, TMP_NAME))
GITHUB_REPO = os.getenv("GITHUB_REPOSITORY", "nerdvegas/rez")
GITHUB_BRANCH = os.getenv("GITHUB_BRANCH", "master")
GITHUB_BRANCH = os.getenv("GITHUB_BRANCH", "master").replace("refs/heads/", "")
GITHUB_WORKFLOW = os.getenv("GITHUB_WORKFLOW", "Wiki")
CLONE_URL = os.getenv(
"CLONE_URL",
Expand Down

0 comments on commit 308981d

Please sign in to comment.