Remove reference to LICENSE that doesn't exist #3
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: 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 |