diff --git a/.github/workflows/cook-branch.yml b/.github/workflows/cook-branch.yml index efb8520..8d5fb5d 100644 --- a/.github/workflows/cook-branch.yml +++ b/.github/workflows/cook-branch.yml @@ -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: @@ -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'