Skip to content
Snippets Groups Projects
Unverified Commit 64b80041 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #246 from noesya/percy-workflow-example

Percy workflow example
parents 8e4ebfe1 24013840
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,28 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: GuillaumeFalourd/create-other-repo-branch-action@v1.5
- name: Set new submodule in new branch on Osuny Example
uses: actions/checkout@v4
with:
repository_owner: noesya
repository_name: osuny-example
new_branch_name: ${GITHUB_REF##*/}
access_token: ${{ secrets.ACCESS_TOKEN}}
# Il faudrait switcher le submodule sur la même branche
\ No newline at end of file
repository: noesya/osuny-example
submodules: 'recursive'
token: ${{ secrets.OSUNY_EXAMPLE_TOKEN }}
- name: Create new branch on Example
run: |
git config user.name osuny-bot
git config user.email osuny@noesya.coop
echo "== Creating new branch =="
git checkout -b theme--${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
- name: Checkout submodule
uses: actions/checkout@v4
with:
repository: noesya/osuny-hugo-theme-aaa
token: ${{ secrets.OSUNY_EXAMPLE_TOKEN }}
path: themes/osuny-hugo-theme-aaa
ref: ${{ github.head_ref || github.ref_name }}
- name: Pushing new branch on Example
run: |
echo "== Pushing branch =="
git add .
git commit -m "Updated theme to ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} branch."
git push -f origin theme--${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment