Config tweaks. #291
Workflow file for this run
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: Push - release for feature preid | |
concurrency: | |
# group name unique for push to push-preid-release | |
group: push-release-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
# Change this to your branch name where "example-preid" corresponds to the preid you want your changes released on | |
- fix/release-workflow | |
jobs: | |
workflow-test: | |
name: Test PR generation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
path: amplify-js | |
token: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }} | |
- name: Set github commit user | |
env: | |
GITHUB_EMAIL: ${{ vars.GH_EMAIL }} | |
GITHUB_USER: ${{ vars.GH_USER }} | |
run: | | |
git config --global user.email $GITHUB_EMAIL | |
git config --global user.name $GITHUB_USER | |
- name: Create an empty commit | |
working-directory: ./amplify-js | |
run: | | |
git checkout -b fix/releast-workflow-alt | |
git commit --allow-empty -m "Empty-Commit" | |
git push origin fix/release-workflow-alt | |
- name: Create a PR to merge temporary release branch into main development branch | |
working-directory: ./amplify-js | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }} | |
run: | | |
gh pr create -B main -H fix/release-workflow-alt --title 'DO NOT MERGE: Test release workflow' --body 'Test release workflow.' |