Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinshakya507 committed Nov 14, 2024
1 parent 9526028 commit f85a945
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/copy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

on:
workflow_run:
workflows: ["Release Charts"]
Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,30 @@ jobs:
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# CR_SKIP_EXISTING: true
# CR_INDEX_PATH: "build/index.yaml"
# CR_INDEX_PATH: "build/index.yaml"
move_file:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history and branches
ref: gh-pages
- name: Move Updated File
run: |
cp index.yaml build/index.yaml
# Configure Git to push changes back
- name: Configure Git
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
# Commit and push the moved file
- name: Commit and Push Changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add build/index.yaml
git commit -m "copy file"
git push

0 comments on commit f85a945

Please sign in to comment.