Skip to content

Commit

Permalink
Fixing GHA permissions to do the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kariharju committed May 13, 2024
1 parent 53fd610 commit 5006b95
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Action Server manual Brew publish

on:
workflow_dispatch:
inputs:
Expand All @@ -11,15 +12,12 @@ jobs:
action-server:
name: action-server
runs-on: macos-13
permissions:
contents: write # Ensuring the job has permission to write to the repository.
steps:
- name: main checkout
uses: actions/checkout@v4

- name: Set up Git
run: |
git config --global user.email "kari@robocorp.com"
git config --global user.name "kariharju"
- name: Update cask recipe
run: |
cd scripts
Expand All @@ -38,6 +36,10 @@ jobs:
- name: Commit and Push
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git add Casks/action-server.rb
git commit -m "Update Action Server to version ${{ github.event.inputs.version }}"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Using the GITHUB_TOKEN for authentication.

0 comments on commit 5006b95

Please sign in to comment.