-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
0.1.24
1 parent
c0d8de9
commit d412dc9
Showing
4 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: keepCloneUpToDate | ||
|
||
on: | ||
schedule: | ||
- cron: '0 8 * * *' # 8:00 AM UTC daily | ||
push: | ||
branches: | ||
- public | ||
pull_request: | ||
branches: | ||
- public | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
issues: read | ||
|
||
env: | ||
REMOTE_ADDR: 'https://github.com/IbrahimTanyalcin/I-PV.git' | ||
BRANCH_NAME: 'public' | ||
|
||
jobs: | ||
initiate: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/public' | ||
steps: | ||
- name: Checkout and Clean | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'gsk-tech/I-PV' | ||
ref: ${{ env.BRANCH_NAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
persist-credentials: true | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name ${{ secrets.GIT_USER_NAME }} | ||
git config user.email ${{ secrets.GIT_USER_EMAIL }} | ||
git remote add ipvGithub ${{ env.REMOTE_ADDR }} | ||
git fetch ipvGithub master | ||
git fetch --tags -f ipvGithub +master | ||
- name: Rebase and Push Changes if Needed | ||
run: | | ||
if [ $(git rev-parse @) != $(git rev-parse ipvGithub/master) ]; then | ||
echo "Commits NOT equal, rebasing" | ||
git reset --hard ipvGithub/master | ||
git pull --rebase ipvGithub master | ||
git push --force origin ${{ env.BRANCH_NAME }}:${{ env.BRANCH_NAME }} | ||
git push --tags --force origin ${{ env.BRANCH_NAME }}:${{ env.BRANCH_NAME }} | ||
else | ||
echo "Commits equal, no need to pull" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ibowankenobi-i-pv", | ||
"version": "0.1.23", | ||
"version": "0.1.24", | ||
"org_ipv": { | ||
"version": "2.5" | ||
}, | ||
|