Skip to content

Commit

Permalink
feat(action): add update time
Browse files Browse the repository at this point in the history
  • Loading branch information
JinnLynn committed Jun 17, 2024
1 parent 4520be0 commit 0e3de02
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/cook-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ jobs:
with:
python-version: '3.12'
- name: fire
id: fire
run: |
pip install ./work/ && \
mkdir -p ./tmp &&
cd ./tmp && \
genpac --config=../work/example/config.ini && \
ls -alhR ./
ls -alhR ./ && \
echo "gen_time=$(date '+%Y-%m-%d %H:%M:%S %z')" >>$GITHUB_OUTPUT
- name: Checkout Branch cooked
uses: actions/checkout@v4
with:
Expand All @@ -36,12 +38,11 @@ jobs:
run: |
mkdir -p ./cooked/${{ inputs.branch }} && \
rm -rf ./cooked/${{ inputs.branch }}/* && \
cp ./tmp/* ./cooked/${{ inputs.branch }}/ && \
ls -alhR ./cooked/${{ inputs.branch }}/
cp ./tmp/* ./cooked/${{ inputs.branch }}/
- name: commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: ./cooked
commit_message: update
commit_message: update ${{ steps.fire.outputs.gen_time }}
add_options: '-A'
push_options: '--force'

0 comments on commit 0e3de02

Please sign in to comment.