-
Notifications
You must be signed in to change notification settings - Fork 20
31 lines (31 loc) · 1.15 KB
/
release-patch-workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
name: Release Patch
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
ls -all
sed -i 's|main|feature/troubleshoot-workflow-permissions|g' .github/workflows/publish-workflow.yaml
git config --local user.email "[email protected]"
git config --local user.name "mattd-shine"
git diff
git status
git commit -a -m "Updating workflow file"
git status
- shell: bash
env:
GITHUB_TOKEN: ${{ secrets.MATTD_GITHUB_TOKEN }}
GITHUB_USER: [email protected]
GITHUB_REPO: "github.com/${{ github.repository }}.git"
GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
run: |
echo "GITHUB_USER: $GITHUB_USER"
echo "GITHUB_REPO: $GITHUB_REPO"
echo "GITHUB_BRANCH: $GITHUB_BRANCH"
git status
git remote set-url origin "https://${GITHUB_USER}:${{ secrets.MATTD_GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push origin "${GITHUB_BRANCH}"