Skip to content

Commit

Permalink
chore: use new creds for roxbot (#143)
Browse files Browse the repository at this point in the history
* chore: use new creds for roxbot

* Also add token in release flow
  • Loading branch information
dhaus67 authored Apr 22, 2024
1 parent b852623 commit e42ff66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
token: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}
ref: ${{ github.ref_name }}

- name: Setup Node.js 20.x
Expand All @@ -42,8 +42,8 @@ jobs:
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Commit Dist
run: |
git config --global user.email "[email protected]"
git config --global user.name "Robot Rox"
git config --global user.email ${{ secrets.RHACS_BOT_GITHUB_EMAIL }}
git config --global user.name ${{ secrets.RHACS_BOT_GITHUB_USERNAME }}
git add dist
git commit -m "chore: Update dist" || echo "No changes to commit."
git push origin
5 changes: 3 additions & 2 deletions .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required since we need to ensure all tags are contained within the checkout.
token: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}

- name: Setup GitSign
uses: chainguard-dev/actions/setup-gitsign@main

- name: Move main version tag
run: |
git config --global user.email "[email protected]"
git config --global user.name "Robot Rox"
git config --global user.email ${{ secrets.RHACS_BOT_GITHUB_EMAIL }}
git config --global user.name ${{ secrets.RHACS_BOT_GITHUB_USERNAME }}
# Move the main version tag to the target tag.
git tag -s -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
git push origin ${{ github.event.inputs.main_version }} --force --tags

0 comments on commit e42ff66

Please sign in to comment.