Merge pull request #6 from cutlerydrawer/dependabot-npm_and_yarn-acti… #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Action | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Prepare | |
run: | | |
git checkout -b test-try-push | |
git push origin test-try-push | |
git reset --hard HEAD~1 | |
git checkout - | |
- name: Push | |
uses: ./ | |
with: | |
branch: test-try-push | |
- name: Clean | |
if: always() | |
run: | | |
git push --delete origin test-try-push |