Skip to content

[workflow] fix: try pushing manually #1

[workflow] fix: try pushing manually

[workflow] fix: try pushing manually #1

Workflow file for this run

name: Push
on:
push:
branches: ["master"]
jobs:
build-and-push-image:
runs-on: ubuntu-latest
environment: prod
permissions:
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.COMMIT_TOKEN }}
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Handle version
run: |
VERSION=`cat version.txt`
echo "APP_VERSION=$(echo $VERSION)" >> $GITHUB_ENV
VERSION=$((VERSION+1))
rm version.txt
touch version.txt
echo $VERSION >> version.txt
- name: Commit & Push changes
uses: actions-js/push@master
with:
branch: "master"
github_token: ${{ secrets.COMMIT_TOKEN }}