Skip to content

Commit c07783f

Browse files
committed
make git tag the feature version
1 parent d3597a9 commit c07783f

File tree

2 files changed

+28
-24
lines changed

2 files changed

+28
-24
lines changed

.devcontainer/features/bash-config/devcontainer-feature.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Lightweight and configurable BASH eternal history",
33
//ID *must* match parent folder name *exactly*
44
"id": "bash-config",
5-
"version": "1.0.0",
5+
"version": "test",
66
"description": "Lightweight BASH setup with eternal history and PS1 tweaks. Fully configurable.",
77
"documentationURL": "https://raw.githubusercontent.com/DiamondRC/devcontainer-features/refs/heads/main/.devcontainer/features/bash-config/README.md",
88
"containerEnv": {
@@ -17,4 +17,4 @@
1717
}
1818
],
1919
"onCreateCommand": "bash /devcontainer_staging/onCreateCommand.sh"
20-
}
20+
}

.github/workflows/release.yaml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
- name: patch in version tag
19+
run: |
20+
sed -i s/replace-with-version-tag/${{ github.ref_name }}/ $(find .devcontainer -name devcontainer-feature.json)
21+
1822
- name: "Publish Features"
1923
uses: devcontainers/action@v1
2024
with:
@@ -25,25 +29,25 @@ jobs:
2529
env:
2630
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2731

28-
- name: Create PR for Documentation
29-
id: push_image_info
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
run: |
33-
set -e
34-
echo "Start."
35-
# Configure git and Push updates
36-
git config --global user.email github-actions[bot]@users.noreply.github.com
37-
git config --global user.name github-actions[bot]
38-
git config pull.rebase false
39-
branch=automated-documentation-update-$GITHUB_RUN_ID
40-
git checkout -b $branch
41-
message='Automated documentation update'
42-
# Add / update and commit
43-
git add */**/README.md
44-
git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
45-
# Push
46-
if [ "$NO_UPDATES" != "true" ] ; then
47-
git push origin "$branch"
48-
gh pr create --title "$message" --body "$message"
49-
fi
32+
# - name: Create PR for Documentation
33+
# id: push_image_info
34+
# env:
35+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
# run: |
37+
# set -e
38+
# echo "Start."
39+
# # Configure git and Push updates
40+
# git config --global user.email github-actions[bot]@users.noreply.github.com
41+
# git config --global user.name github-actions[bot]
42+
# git config pull.rebase false
43+
# branch=automated-documentation-update-$GITHUB_RUN_ID
44+
# git checkout -b $branch
45+
# message='Automated documentation update'
46+
# # Add / update and commit
47+
# git add */**/README.md
48+
# git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
49+
# # Push
50+
# if [ "$NO_UPDATES" != "true" ] ; then
51+
# git push origin "$branch"
52+
# gh pr create --title "$message" --body "$message"
53+
# fi

0 commit comments

Comments
 (0)