Skip to content

Commit

Permalink
Changes to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ep-93 committed Sep 9, 2024
1 parent 5f85119 commit 90560c8
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/test-commit-signing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: fmt

on:
# NOTE: Need to run on a PR so that the ${{ github.head_ref }} (branch) is non-null
pull_request:
types:
- opened
Expand All @@ -13,33 +12,29 @@ jobs:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4
# Include the pull request ref in the checkout action to prevent merge commit
# https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.ref_name }}

- name: Setup git
run: echo ${{ github.head_ref || github.ref_name }}

- name: List current directory structure
run: ls -R /home/runner/work/house-of-fun/house-of-fun

- name: Create a change
working-directory: code
run: |
ls -R /home/runner/work/house-of-fun/house-of-fun
touch test1.txt
git add test1.txt
# Run steps that make changes to the local repo here.
mkdir -p code
touch code/test1.txt
git add code/test1.txt
# Commit all changed files back to the repository
- uses: planetscale/[email protected]
with:
commit_message: "🤖 fmt"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 90560c8

Please sign in to comment.