Skip to content

Commit

Permalink
Create delete-license-key.yml
Browse files Browse the repository at this point in the history
Delete the license.key Craft license file after commits are pushed to `main` so that new projects get unique license keys
  • Loading branch information
itsmattsoria authored Jan 17, 2024
1 parent 6178792 commit 75db9ae
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/delete-license-key.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Delete License Key and Commit Changes

on:
push:
branches:
- main

jobs:
delete-commit:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Delete File and Commit Changes
run: |
rm app/config/license.key
git add .
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Delete license.key file"
- name: Push Changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 75db9ae

Please sign in to comment.