Skip to content

Commit

Permalink
chore: noversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanngocptn committed Oct 2, 2024
1 parent aafa748 commit f876814
Showing 1 changed file with 34 additions and 23 deletions.
57 changes: 34 additions & 23 deletions .github/workflows/update-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ permissions:
contents: write

jobs:
setup-build-publish-deploy:
name: Update config ${{ matrix.env }}
run:
name: Run ${{ matrix.env }}
environment: ${{ matrix.env }}
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -34,24 +34,35 @@ jobs:
path: ${{ matrix.env }}/app-config.json
if-no-files-found: warn

# - name: Checkout source
# uses: actions/checkout@v4
# with:
# repository: ${{ secrets.STATIC_WEB_REPOSITORY }}
# token: ${{ secrets.GH_PAT }}
# path: source

# - name: Move file
# run: |
# rm -rf ./source/${{ matrix.env }}/conf/app-config.json
# mv ./tmp/app-config.json ./source/${{ matrix.env }}/conf/app-config.json

# - name: Commit
# working-directory: source
# run: |
# cat ./${{ matrix.env }}/conf/app-config.json
# git config user.name "GitHub Actions"
# git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git add -A
# git diff-index --quiet HEAD || git commit -m ':white_check_mark: Update'
# git pull origin main && git push origin main
after-run:
name: After run
needs: [run]
runs-on: ubuntu-latest
steps:
- name: Download from artifact
uses: actions/download-artifact@v4

- name: Checkout source
uses: actions/checkout@v4
with:
repository: ${{ secrets.STATIC_WEB_REPOSITORY }}
token: ${{ secrets.GH_PAT }}
path: source

- name: test
run: ls

# - name: Move file
# run: |
# rm -rf ./source/${{ matrix.env }}/conf/app-config.json
# mv ./tmp/app-config.json ./source/${{ matrix.env }}/conf/app-config.json

# - name: Commit
# working-directory: source
# run: |
# cat ./${{ matrix.env }}/conf/app-config.json
# git config user.name "GitHub Actions"
# git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git add -A
# git diff-index --quiet HEAD || git commit -m ':white_check_mark: Update'
# git pull origin main && git push origin main

0 comments on commit f876814

Please sign in to comment.