Skip to content

Is it possible to auto-minify, then push to another branch? #24

Answered by nizarmah
qwbarch asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @qwbarch! Sorry for the late reply!

Yes, it's possible to push the minified files to the minified branch.

Before I share the code on how to do it, I'll share the logic behind it.

There are three main steps for using this action:

  1. Checking out the files from a specific repository and branch
  2. Running the auto-minify action
  3. Committing the files to a specific repository and branch

Those three steps are broken into the following segments, in the code:

steps:
  # Checking out the files from a specific repository and branch
  - uses: actions/checkout@v2

  # Running the `auto-minify` action
  - name: Auto Minify
    uses: nizarmah/[email protected]

  # Committing the files to a specific re…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by qwbarch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants