ALL TOGETHER NOW

This commit is contained in:
Yair Morgenstern
2023-11-28 11:59:07 +02:00
parent bc935a310c
commit 208ad8a641

View File

@ -40,18 +40,18 @@ jobs:
runs-on: ubuntu-latest
steps:
# - name: Merge Pull Request
# uses: "actions/github-script@v5"
# with:
# github-token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
# script: |
# const repository = context.repo
# await github.rest.pulls.merge({
# merge_method: "squash",
# owner: repository.owner,
# pull_number: ${{ github.event.issue.number }},
# repo: repository.repo,
# })
- name: Merge Pull Request
uses: "actions/github-script@v5"
with:
github-token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
script: |
const repository = context.repo
await github.rest.pulls.merge({
merge_method: "squash",
owner: repository.owner,
pull_number: ${{ github.event.issue.number }},
repo: repository.repo,
})
- uses: actions/checkout@v3
with: # Required for triggering the deploy on tags added by this automation
@ -65,13 +65,6 @@ jobs:
export version=$(node .github/workflows/releasePatch.js)
echo "VERSION=$version" >> "$GITHUB_ENV"
# git config user.name "GitHub Actions - autopatch"
# git config user.email "<>"
# git add .
# git commit -m "$version"
# git tag $version
# git push origin --tags
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: ${{env.VERSION}}