Skip to content

fix mistake in previous commit #13

fix mistake in previous commit

fix mistake in previous commit #13

Workflow file for this run

name: Main
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Set extra GitHub environment variables
id: github-env-vars
uses: rlespinasse/github-slug-action@v4
- name: Checkout source
id: checkout-source
uses: actions/checkout@v4
- name: Schema Validation
id: schema-validation
uses: dsanders11/json-schema-validate-action@v1.2.0
with:
files: 'action.yaml'
schema: https://json.schemastore.org/github-action.json
merge:
needs:
- build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Set extra GitHub environment variables
id: github-env-vars
uses: rlespinasse/github-slug-action@v4
- name: Checkout source
id: checkout-source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Merge branch
id: merge-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Configuring git"
git config user.name "GitHub Actions"
git config user.email "<>"
echo "Checking out branch"
git fetch origin v1
git checkout v1
git reset --hard v1
echo "Merging branch"
git merge --no-ff $GITHUB_REF
echo "Pushing branch"
git push origin v1