Skip to content

Commit

Permalink
run github action on a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed May 12, 2020
1 parent b0092bb commit c9d4314
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
push:
branches:
- master
- fix-commiting-to-master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -40,3 +40,11 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
if: github.repository == 'NixOS/nixos-homepage'
- name: Commit flake.lock, blogs.xml and push to master branch
uses: github-actions-x/commit@v2.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'fix-commiting-to-master'
commit-message: 'Update flake.lock and blogs.xml [ci skip]'
files: flake.lock blogs.xml
if: github.repository == 'NixOS/nixos-homepage'

1 comment on commit c9d4314

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.